diff --git a/internal/_oracle/main.go b/internal/_oracle/main.go index dafd728..f9f593e 100644 --- a/internal/_oracle/main.go +++ b/internal/_oracle/main.go @@ -26,10 +26,10 @@ type seed struct { } type caseEntry struct { - Seed seed `json:"seed"` - Uint64 []string `json:"uint64"` - Float64 []float64 `json:"float64"` - IntN map[string][]int `json:"intN"` + Seed seed `json:"seed"` + Uint64 []string `json:"uint64"` + Float64 []float64 `json:"float64"` + IntN map[string][]int `json:"intN"` } const drawCount = 40 diff --git a/internal/replay/runs_decode.go b/internal/replay/runs_decode.go index 5f5185f..f805e1c 100644 --- a/internal/replay/runs_decode.go +++ b/internal/replay/runs_decode.go @@ -67,9 +67,9 @@ type violationAttribution struct { func decodeStepSummary(line []byte) (StepSummary, []violationAttribution, error) { var partial struct { - Index int `json:"step"` - Timestamp time.Time `json:"timestamp"` - Screen string `json:"screen,omitempty"` + Index int `json:"step"` + Timestamp time.Time `json:"timestamp"` + Screen string `json:"screen,omitempty"` NextAction *struct { Kind string `json:"kind"` X int `json:"x,omitempty"` diff --git a/internal/replay/server.go b/internal/replay/server.go index f06b9b1..7af9b10 100644 --- a/internal/replay/server.go +++ b/internal/replay/server.go @@ -284,4 +284,3 @@ func ResolveRunsDirectory(argument string) (string, string, error) { } return argument, "", nil } - diff --git a/internal/runner/runner.go b/internal/runner/runner.go index ae5d640..e060133 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -935,4 +935,3 @@ const maxConsecutiveApplyFailures = 3 func isWDADrop(err error) bool { return strings.Contains(err.Error(), "WDA reconnect failed") } - diff --git a/internal/trace/writer_test.go b/internal/trace/writer_test.go index 8b3f417..71ccf32 100644 --- a/internal/trace/writer_test.go +++ b/internal/trace/writer_test.go @@ -22,13 +22,13 @@ func TestWriteMeta_RoundTrip(t *testing.T) { defer writer.Close() meta := Meta{ - Seed: 42, - SpecPath: "spec.ts", - BundleSHA256: "deadbeef", - Platform: "android", - BundleID: "in.okcredit.merchant", - StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC), - SanderlingVersion: "0.0.1", + Seed: 42, + SpecPath: "spec.ts", + BundleSHA256: "deadbeef", + Platform: "android", + BundleID: "in.okcredit.merchant", + StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC), + SanderlingVersion: "0.0.1", } if err := writer.WriteMeta(meta); err != nil { t.Fatal(err) @@ -57,12 +57,12 @@ func TestWriteMeta_EndedAtRoundTrip(t *testing.T) { endedAt := time.Date(2026, 4, 17, 22, 31, 0, 0, time.UTC) meta := Meta{ - Seed: 7, - SpecPath: "spec.ts", - Platform: "android", - BundleID: "in.test", - StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC), - EndedAt: &endedAt, + Seed: 7, + SpecPath: "spec.ts", + Platform: "android", + BundleID: "in.test", + StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC), + EndedAt: &endedAt, SanderlingVersion: "0.0.1", } if err := writer.WriteMeta(meta); err != nil { diff --git a/internal/verifier/spec_integration_test.go b/internal/verifier/spec_integration_test.go index b5dcf54..8727e30 100644 --- a/internal/verifier/spec_integration_test.go +++ b/internal/verifier/spec_integration_test.go @@ -47,17 +47,17 @@ func bundleIntegrationSpec(t *testing.T) string { func listSnapshots() Snapshots { return Snapshots{ - "route": json.RawMessage(`"list"`), - "item_count": json.RawMessage(`0`), - "has_submitted": json.RawMessage(`false`), + "route": json.RawMessage(`"list"`), + "item_count": json.RawMessage(`0`), + "has_submitted": json.RawMessage(`false`), } } func formSnapshots() Snapshots { return Snapshots{ - "route": json.RawMessage(`"form"`), - "item_count": json.RawMessage(`0`), - "has_submitted": json.RawMessage(`false`), + "route": json.RawMessage(`"form"`), + "item_count": json.RawMessage(`0`), + "has_submitted": json.RawMessage(`false`), } }