diff options
author | Christopher Koch <chrisko@google.com> | 2019-02-28 13:44:56 -0800 |
---|---|---|
committer | insomniac <insomniacslk@users.noreply.github.com> | 2019-03-11 21:54:10 -0700 |
commit | 5073ba65eb176fae79fdca21f28728a0c2c4ca19 (patch) | |
tree | d617173503f875ab6294ce870a93ac7a9b56c2f6 /dhcpv6/dhcpv6message_test.go | |
parent | 5859695ac2f7e59f6a7de0a0353aa1e1f19aa6aa (diff) |
dhcpv6: rename stuttering types.
dhcpv6.DHCPv6Message -> dhcpv6.Message
dhcpv6.DHCPv6Relay -> dhcpv6.RelayMessage
Diffstat (limited to 'dhcpv6/dhcpv6message_test.go')
-rw-r--r-- | dhcpv6/dhcpv6message_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dhcpv6/dhcpv6message_test.go b/dhcpv6/dhcpv6message_test.go index 5c92a7b..2dd4a1c 100644 --- a/dhcpv6/dhcpv6message_test.go +++ b/dhcpv6/dhcpv6message_test.go @@ -7,26 +7,26 @@ import ( ) func TestIsNetboot(t *testing.T) { - msg1 := DHCPv6Message{} + msg1 := Message{} require.False(t, msg1.IsNetboot()) - msg2 := DHCPv6Message{} + msg2 := Message{} optro := OptRequestedOption{} optro.AddRequestedOption(OptionBootfileURL) msg2.AddOption(&optro) require.True(t, msg2.IsNetboot()) - msg3 := DHCPv6Message{} + msg3 := Message{} optbf := OptBootFileURL{} msg3.AddOption(&optbf) require.True(t, msg3.IsNetboot()) } func TestIsOptionRequested(t *testing.T) { - msg1 := DHCPv6Message{} + msg1 := Message{} require.False(t, msg1.IsOptionRequested(OptionDNSRecursiveNameServer)) - msg2 := DHCPv6Message{} + msg2 := Message{} optro := OptRequestedOption{} optro.AddRequestedOption(OptionDNSRecursiveNameServer) msg2.AddOption(&optro) |