- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestEmptyID (0.12 sec)
-
src/cmd/internal/buildid/buildid_test.go
t.Errorf("unexpected number of bytes read: want %d, got %d", len(res), n) } if string(p[:n]) != res { t.Errorf("unexpected bytes: want %q, got %q", res, p[:n]) } } } } func TestEmptyID(t *testing.T) { r := strings.NewReader("aha!") matches, hash, err := FindAndHash(r, "", 1000) if matches != nil || hash != ([32]byte{}) || err == nil || !strings.Contains(err.Error(), "no id") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:28 UTC 2024 - 6.6K bytes - Viewed (0)