From 5073ba65eb176fae79fdca21f28728a0c2c4ca19 Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Thu, 28 Feb 2019 13:44:56 -0800 Subject: dhcpv6: rename stuttering types. dhcpv6.DHCPv6Message -> dhcpv6.Message dhcpv6.DHCPv6Relay -> dhcpv6.RelayMessage --- dhcpv6/dhcpv6message_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dhcpv6/dhcpv6message_test.go') 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) -- cgit v1.2.3