summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_tftp_server_name_test.go
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2018-08-10 05:49:53 -0700
committerGitHub <noreply@github.com>2018-08-10 05:49:53 -0700
commita6212f1f72e94821a29894fb66656a981bd035d0 (patch)
treea816ff9e8821b773486fabfb0e41fd0414d730b6 /dhcpv4/option_tftp_server_name_test.go
parent5207d76712250f33111c546d9ace98336d616bfc (diff)
parent0edcc4a6721ffa792bbdc095134ac77e473510ee (diff)
rename RequestFromOffer to NewRequestFromOffer (#121)
Diffstat (limited to 'dhcpv4/option_tftp_server_name_test.go')
-rw-r--r--dhcpv4/option_tftp_server_name_test.go5
1 files changed, 5 insertions, 0 deletions
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())
+}