style: gofmt struct alignment drift

This commit is contained in:
pj committed 2026-06-06 23:45:13 +05:30
1 parent 571dd414f5
commit 34cfba4221
6 files changed
+26 -28

No files matched your search

+4 -4
View File
@@ -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
+3 -3
View File
@@ -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"`
-1
View File
@@ -284,4 +284,3 @@ func ResolveRunsDirectory(argument string) (string, string, error) {
}
return argument, "", nil
}
-1
View File
@@ -935,4 +935,3 @@ const maxConsecutiveApplyFailures = 3
func isWDADrop(err error) bool {
return strings.Contains(err.Error(), "WDA reconnect failed")
}
+13 -13
View File
@@ -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 {
+6 -6
View File
@@ -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`),
}
}