diff options
Diffstat (limited to 'dhcpv4/utils_test.go')
-rw-r--r-- | dhcpv4/utils_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/dhcpv4/utils_test.go b/dhcpv4/utils_test.go deleted file mode 100644 index d722466..0000000 --- a/dhcpv4/utils_test.go +++ /dev/null @@ -1,17 +0,0 @@ -package dhcpv4 - -import ( - "testing" - - "github.com/stretchr/testify/require" -) - -func TestIsRequetsed(t *testing.T) { - pkt, err := New() - require.NoError(t, err) - require.False(t, IsRequested(pkt, OptionDomainNameServer)) - - optprl := OptParameterRequestList{RequestedOpts: []OptionCode{OptionDomainNameServer}} - pkt.AddOption(&optprl) - require.True(t, IsRequested(pkt, OptionDomainNameServer)) -} |