summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_host_name_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_host_name_test.go')
-rw-r--r--dhcpv4/option_host_name_test.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/dhcpv4/option_host_name_test.go b/dhcpv4/option_host_name_test.go
deleted file mode 100644
index 3761ada..0000000
--- a/dhcpv4/option_host_name_test.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package dhcpv4
-
-import (
- "testing"
-
- "github.com/stretchr/testify/require"
-)
-
-func TestOptHostNameInterfaceMethods(t *testing.T) {
- o := OptHostName{HostName: "foo"}
- require.Equal(t, OptionHostName, o.Code(), "Code")
- require.Equal(t, []byte{'f', 'o', 'o'}, o.ToBytes(), "ToBytes")
-}
-
-func TestParseOptHostName(t *testing.T) {
- data := []byte{'t', 'e', 's', 't'}
- o, err := ParseOptHostName(data)
- require.NoError(t, err)
- require.Equal(t, &OptHostName{HostName: "test"}, o)
-}
-
-func TestOptHostNameString(t *testing.T) {
- o := OptHostName{HostName: "testy test"}
- require.Equal(t, "Host Name -> testy test", o.String())
-}