mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +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 {
|
type caseEntry struct {
|
||||||
Seed seed `json:"seed"`
|
Seed seed `json:"seed"`
|
||||||
Uint64 []string `json:"uint64"`
|
Uint64 []string `json:"uint64"`
|
||||||
Float64 []float64 `json:"float64"`
|
Float64 []float64 `json:"float64"`
|
||||||
IntN map[string][]int `json:"intN"`
|
IntN map[string][]int `json:"intN"`
|
||||||
}
|
}
|
||||||
|
|
||||||
const drawCount = 40
|
const drawCount = 40
|
||||||
|
|||||||
@@ -67,9 +67,9 @@ type violationAttribution struct {
|
|||||||
|
|
||||||
func decodeStepSummary(line []byte) (StepSummary, []violationAttribution, error) {
|
func decodeStepSummary(line []byte) (StepSummary, []violationAttribution, error) {
|
||||||
var partial struct {
|
var partial struct {
|
||||||
Index int `json:"step"`
|
Index int `json:"step"`
|
||||||
Timestamp time.Time `json:"timestamp"`
|
Timestamp time.Time `json:"timestamp"`
|
||||||
Screen string `json:"screen,omitempty"`
|
Screen string `json:"screen,omitempty"`
|
||||||
NextAction *struct {
|
NextAction *struct {
|
||||||
Kind string `json:"kind"`
|
Kind string `json:"kind"`
|
||||||
X int `json:"x,omitempty"`
|
X int `json:"x,omitempty"`
|
||||||
|
|||||||
@@ -284,4 +284,3 @@ func ResolveRunsDirectory(argument string) (string, string, error) {
|
|||||||
}
|
}
|
||||||
return argument, "", nil
|
return argument, "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -935,4 +935,3 @@ const maxConsecutiveApplyFailures = 3
|
|||||||
func isWDADrop(err error) bool {
|
func isWDADrop(err error) bool {
|
||||||
return strings.Contains(err.Error(), "WDA reconnect failed")
|
return strings.Contains(err.Error(), "WDA reconnect failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,13 +22,13 @@ func TestWriteMeta_RoundTrip(t *testing.T) {
|
|||||||
defer writer.Close()
|
defer writer.Close()
|
||||||
|
|
||||||
meta := Meta{
|
meta := Meta{
|
||||||
Seed: 42,
|
Seed: 42,
|
||||||
SpecPath: "spec.ts",
|
SpecPath: "spec.ts",
|
||||||
BundleSHA256: "deadbeef",
|
BundleSHA256: "deadbeef",
|
||||||
Platform: "android",
|
Platform: "android",
|
||||||
BundleID: "in.okcredit.merchant",
|
BundleID: "in.okcredit.merchant",
|
||||||
StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC),
|
StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC),
|
||||||
SanderlingVersion: "0.0.1",
|
SanderlingVersion: "0.0.1",
|
||||||
}
|
}
|
||||||
if err := writer.WriteMeta(meta); err != nil {
|
if err := writer.WriteMeta(meta); err != nil {
|
||||||
t.Fatal(err)
|
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)
|
endedAt := time.Date(2026, 4, 17, 22, 31, 0, 0, time.UTC)
|
||||||
meta := Meta{
|
meta := Meta{
|
||||||
Seed: 7,
|
Seed: 7,
|
||||||
SpecPath: "spec.ts",
|
SpecPath: "spec.ts",
|
||||||
Platform: "android",
|
Platform: "android",
|
||||||
BundleID: "in.test",
|
BundleID: "in.test",
|
||||||
StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC),
|
StartedAt: time.Date(2026, 4, 17, 22, 30, 0, 0, time.UTC),
|
||||||
EndedAt: &endedAt,
|
EndedAt: &endedAt,
|
||||||
SanderlingVersion: "0.0.1",
|
SanderlingVersion: "0.0.1",
|
||||||
}
|
}
|
||||||
if err := writer.WriteMeta(meta); err != nil {
|
if err := writer.WriteMeta(meta); err != nil {
|
||||||
|
|||||||
@@ -47,17 +47,17 @@ func bundleIntegrationSpec(t *testing.T) string {
|
|||||||
|
|
||||||
func listSnapshots() Snapshots {
|
func listSnapshots() Snapshots {
|
||||||
return Snapshots{
|
return Snapshots{
|
||||||
"route": json.RawMessage(`"list"`),
|
"route": json.RawMessage(`"list"`),
|
||||||
"item_count": json.RawMessage(`0`),
|
"item_count": json.RawMessage(`0`),
|
||||||
"has_submitted": json.RawMessage(`false`),
|
"has_submitted": json.RawMessage(`false`),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func formSnapshots() Snapshots {
|
func formSnapshots() Snapshots {
|
||||||
return Snapshots{
|
return Snapshots{
|
||||||
"route": json.RawMessage(`"form"`),
|
"route": json.RawMessage(`"form"`),
|
||||||
"item_count": json.RawMessage(`0`),
|
"item_count": json.RawMessage(`0`),
|
||||||
"has_submitted": json.RawMessage(`false`),
|
"has_submitted": json.RawMessage(`false`),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user