Skip to content

Commit ad9370e

Browse files
committed
make
1 parent 111b140 commit ad9370e

105 files changed

Lines changed: 1170 additions & 370 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

testing/examples/calculator/calculator_suite_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import (
1111
)
1212

1313
// RuncalculatorHarness exercises the generated harness against your service
14-
// implementation.// Call this helper from your test, passing your service implementation.
14+
// implementation.
15+
// Call this helper from your test, passing your service implementation.
1516
func RunCalculatorHarness(t *testing.T, svc calculator.Service) {
1617
t.Helper()
1718
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)

testing/examples/calculator/calculator_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ func TestCalculatorScenarios(t *testing.T) {
1717
service := NewCalculator()
1818
h := calculatortest.NewHarness(t, service)
1919
defer h.Close()
20-
20+
2121
// Load scenarios from YAML
2222
runner, err := calculatortest.LoadScenarios("scenarios.yaml")
2323
if err != nil {
2424
t.Fatalf("failed to load scenarios: %v", err)
2525
}
26-
26+
2727
// Run all scenarios
2828
runner.Run(t, h.Client)
2929
}
@@ -34,13 +34,13 @@ func TestSpecificScenario(t *testing.T) {
3434
service := NewCalculator()
3535
h := calculatortest.NewHarness(t, service)
3636
defer h.Close()
37-
37+
3838
// Load scenarios
3939
runner, err := calculatortest.LoadScenarios("scenarios.yaml")
4040
if err != nil {
4141
t.Fatalf("failed to load scenarios: %v", err)
4242
}
43-
43+
4444
// Run specific scenario
4545
runner.RunNamed(t, h.Client, "division_with_validation")
46-
}
46+
}

testing/examples/calculator/design/design.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,4 @@ var CalculatorError = Type("CalculatorError", func() {
126126
Field(1, "message", String, "Error message")
127127
Field(2, "code", String, "Error code")
128128
Required("message", "code")
129-
})
129+
})

testing/examples/calculator/gen/calculator/calculatortest/client.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/examples/calculator/gen/calculator/calculatortest/errors.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/examples/calculator/gen/calculator/calculatortest/harness.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/examples/calculator/gen/calculator/calculatortest/scenarios.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/examples/calculator/gen/calculator/calculatortest/testdata.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/examples/calculator/gen/calculator/client.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/examples/calculator/gen/calculator/endpoints.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)