Skip to content

Commit c932f0d

Browse files
hbarthelsclaude
andauthored
Fix hash_test.go to compile with updated NewParser signature (#268)
NewParser gained an `input string` parameter, but sdks/go/src/hash_test.go was never updated, so `go test ./src/...` failed to compile. The test only exercises relationIdFromString, which does not read input, so pass "". Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6fe52b9 commit c932f0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdks/go/src/hash_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "testing"
55
// TestRelationIdFromString verifies that relation_id_from_string produces
66
// the same id across all SDKs (Julia, Python, Go).
77
func TestRelationIdFromString(t *testing.T) {
8-
p := NewParser([]Token{})
8+
p := NewParser([]Token{}, "")
99
rid := p.relationIdFromString("my_relation")
1010
if rid.IdLow != 0xf2fc83ec57cf8fbc {
1111
t.Errorf("id_low: got 0x%016x, want 0xf2fc83ec57cf8fbc", rid.IdLow)

0 commit comments

Comments
 (0)