mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
style: gofmt struct alignment drift
This commit is contained in:
1 parent
571dd414f5
commit
34cfba4221
6 files changed
+26
-28
No files matched your search
@@ -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
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -284,4 +284,3 @@ func ResolveRunsDirectory(argument string) (string, string, error) {
|
||||
}
|
||||
return argument, "", nil
|
||||
}
|
||||
|
||||
@@ -935,4 +935,3 @@ const maxConsecutiveApplyFailures = 3
|
||||
func isWDADrop(err error) bool {
|
||||
return strings.Contains(err.Error(), "WDA reconnect failed")
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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`),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user