(t *testing.T)
| 210 | ok = IsNotFound(err) |
| 211 | if !ok { |
| 212 | t.Errorf("expected true, got %t", ok) |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | func TestEncode(t *testing.T) { |
| 217 | data := "test" |
| 218 | buf, err := encode(data) |
| 219 | if err != nil { |
| 220 | t.Error(err) |
| 221 | } |
| 222 | |
| 223 | dec := xdr.NewDecoder(bytes.NewReader(buf)) |
| 224 | res, _, err := dec.DecodeString() |
| 225 | if err != nil { |
| 226 | t.Error(err) |
| 227 | } |
| 228 | |
| 229 | if res != data { |
| 230 | t.Errorf("expected %s, got %s", data, res) |
| 231 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…