@@ -7,19 +7,17 @@ import (
7
7
"github.com/github/git-lfs/vendor/_nuts/github.com/stretchr/testify/assert"
8
8
)
9
9
10
- // SchemaTestCase encapsulates a single assertion of equality against two
10
+ // AssertRequestSchema encapsulates a single assertion of equality against two
11
11
// generated RequestSchema instances.
12
12
//
13
- // SchemaTestCases are meant only to test that the request schema generated by
14
- // an API service matches what we expect it to be. A SchemaTestCase does not
15
- // make use of the *api.Client, any particular lifecycle, or spin up a test
16
- // server. All of that behavior is tested at a higher strata in the
17
- // client/lifecycle tests.
18
- //
19
- // For examples, open any `*_api_test.go` file in the `api_test` package.
13
+ // This assertion is meant only to test that the request schema generated by an
14
+ // API service matches what we expect it to be. It does not make use of the
15
+ // *api.Client, any particular lifecycle, or spin up a test server. All of that
16
+ // behavior is tested at a higher strata in the client/lifecycle tests.
20
17
//
18
+ // - t is the *testing.T used to preform the assertion.
21
19
// - Expected is the *api.RequestSchema that we expected to be generated.
22
20
// - Got is the *api.RequestSchema that was generated by a service.
23
- func AssertSchema (t * testing.T , expected , got * api.RequestSchema ) {
21
+ func AssertRequestSchema (t * testing.T , expected , got * api.RequestSchema ) {
24
22
assert .Equal (t , expected , got )
25
23
}
0 commit comments