MCPcopy Create free account
hub / github.com/bitfield/ftl-code / testCase

Struct testCase

5.1/calculator_test.go:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8func TestAdd(t *testing.T) {
9 t.Parallel()
10 type testCase struct {
11 a, b float64
12 want float64
13 }
14 testCases := []testCase{
15 {a: 2, b: 2, want: 4},
16 {a: 1, b: 1, want: 2},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected