summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_tftp_server_name_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_tftp_server_name_test.go')
-rw-r--r--dhcpv4/option_tftp_server_name_test.go37
1 files changed, 0 insertions, 37 deletions
diff --git a/dhcpv4/option_tftp_server_name_test.go b/dhcpv4/option_tftp_server_name_test.go
deleted file mode 100644
index c46b5db..0000000
--- a/dhcpv4/option_tftp_server_name_test.go
+++ /dev/null
@@ -1,37 +0,0 @@
-package dhcpv4
-
-import (
- "testing"
-
- "github.com/stretchr/testify/require"
-)
-
-func TestOptTFTPServerNameCode(t *testing.T) {
- opt := OptTFTPServerName{}
- require.Equal(t, OptionTFTPServerName, opt.Code())
-}
-
-func TestOptTFTPServerNameToBytes(t *testing.T) {
- opt := OptTFTPServerName{
- TFTPServerName: "linuxboot",
- }
- data := opt.ToBytes()
- expected := []byte{
- 'l', 'i', 'n', 'u', 'x', 'b', 'o', 'o', 't',
- }
- require.Equal(t, expected, data)
-}
-
-func TestParseOptTFTPServerName(t *testing.T) {
- expected := []byte{
- 'l', 'i', 'n', 'u', 'x', 'b', 'o', 'o', 't',
- }
- opt, err := ParseOptTFTPServerName(expected)
- require.NoError(t, err)
- require.Equal(t, "linuxboot", string(opt.TFTPServerName))
-}
-
-func TestOptTFTPServerNameString(t *testing.T) {
- o := OptTFTPServerName{TFTPServerName: "testy test"}
- require.Equal(t, "TFTP Server Name -> testy test", o.String())
-}