(t *testing.T)
| 496 | } |
| 497 | |
| 498 | func TestExtractLLAddressOrIdWithDUIDEN(t *testing.T) { |
| 499 | builder := &PacketBuilder{} |
| 500 | expectedID := []byte{0x0, 0x1, 0x2, 0x3, 0xac, 0xbc, 0x32, 0xae, 0x86, 0x37} |
| 501 | id := builder.extractLLAddressOrID([]byte{0x0, 0x2, 0x0, 0x1, 0x2, 0x3, 0xac, 0xbc, 0x32, 0xae, 0x86, 0x37}) |
| 502 | if string(expectedID) != string(id) { |
| 503 | t.Fatalf("Expected id %x, got: %x", expectedID, id) |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | func TestExtractLLAddressOrIdWithDUIDLL(t *testing.T) { |
| 508 | builder := &PacketBuilder{} |
nothing calls this directly
no test coverage detected