From 0edcc4a6721ffa792bbdc095134ac77e473510ee Mon Sep 17 00:00:00 2001 From: Pablo Mazzini Date: Fri, 3 Aug 2018 11:44:57 +0200 Subject: OptTFTPServerName and OptBootfileName test String --- dhcpv4/option_tftp_server_name_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dhcpv4/option_tftp_server_name_test.go') diff --git a/dhcpv4/option_tftp_server_name_test.go b/dhcpv4/option_tftp_server_name_test.go index caddf95..812210f 100644 --- a/dhcpv4/option_tftp_server_name_test.go +++ b/dhcpv4/option_tftp_server_name_test.go @@ -58,3 +58,8 @@ func TestParseOptTFTPServerNameShortLength(t *testing.T) { require.NoError(t, err) require.Equal(t, []byte("linu"), opt.TFTPServerName) } + +func TestOptTFTPServerNameString(t *testing.T) { + o := OptTFTPServerName{TFTPServerName: []byte("testy test")} + require.Equal(t, "TFTP Server Name -> testy test", o.String()) +} -- cgit v1.2.3