diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-07-31 11:14:09 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2018-07-31 11:14:09 +0200 |
commit | 7452e8de6d21fbd1a6bbcaa1b63643f42f1f217c (patch) | |
tree | b590856b6a51fa4a4f5170821df67cb2c6489601 /dhcpv4/option_rfc1035label_test.go | |
parent | 4100f801b9bb7036e0b201c2bf42fa6030119cc5 (diff) |
OptDomainSearch: add comments
Diffstat (limited to 'dhcpv4/option_rfc1035label_test.go')
-rw-r--r-- | dhcpv4/option_rfc1035label_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dhcpv4/option_rfc1035label_test.go b/dhcpv4/option_rfc1035label_test.go index 30c87c8..cd8189a 100644 --- a/dhcpv4/option_rfc1035label_test.go +++ b/dhcpv4/option_rfc1035label_test.go @@ -6,7 +6,7 @@ import ( ) func TestLabelsFromBytes(t *testing.T) { - labels, err := LabelsFromBytes([]byte{ + labels, err := labelsFromBytes([]byte{ 0x9, 's', 'l', 'a', 'c', 'k', 'w', 'a', 'r', 'e', 0x2, 'i', 't', 0x0, @@ -23,7 +23,7 @@ func TestLabelsFromBytes(t *testing.T) { } func TestLabelsFromBytesZeroLength(t *testing.T) { - labels, err := LabelsFromBytes([]byte{}) + labels, err := labelsFromBytes([]byte{}) if err != nil { t.Fatal(err) } @@ -33,7 +33,7 @@ func TestLabelsFromBytesZeroLength(t *testing.T) { } func TestLabelsFromBytesInvalidLength(t *testing.T) { - labels, err := LabelsFromBytes([]byte{0x3, 0xaa, 0xbb}) // short length + labels, err := labelsFromBytes([]byte{0x3, 0xaa, 0xbb}) // short length if err == nil { t.Fatal("Expected error, got nil") } @@ -46,7 +46,7 @@ func TestLabelsFromBytesInvalidLength(t *testing.T) { } func TestLabelToBytes(t *testing.T) { - encodedLabel := LabelToBytes("slackware.it") + encodedLabel := labelToBytes("slackware.it") expected := []byte{ 0x9, 's', 'l', 'a', 'c', 'k', 'w', 'a', 'r', 'e', 0x2, 'i', 't', @@ -58,7 +58,7 @@ func TestLabelToBytes(t *testing.T) { } func TestLabelToBytesZeroLength(t *testing.T) { - encodedLabel := LabelToBytes("") + encodedLabel := labelToBytes("") expected := []byte{0} if !bytes.Equal(encodedLabel, expected) { t.Fatalf("Invalid label. Expected: %v, got: %v", expected, encodedLabel) |