(t *testing.T)
| 133 | } |
| 134 | |
| 135 | func TestFromString(t *testing.T) { |
| 136 | got, err := FromString("9m4e2mr0ui3e8a215n4g") |
| 137 | if err != nil { |
| 138 | t.Fatal(err) |
| 139 | } |
| 140 | want := ID{0x4d, 0x88, 0xe1, 0x5b, 0x60, 0xf4, 0x86, 0xe4, 0x28, 0x41, 0x2d, 0xc9} |
| 141 | if got != want { |
| 142 | t.Errorf("FromString() = %v, want %v", got, want) |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func TestFromStringInvalid(t *testing.T) { |
| 147 | _, err := FromString("invalid") |
nothing calls this directly
no test coverage detected
searching dependent graphs…