convert tests to exercise openapi and inference

This commit is contained in:
Khris Richardson
2020-03-03 16:54:47 -08:00
parent caa8fdc3cd
commit fcfe798b75
4 changed files with 727 additions and 337 deletions

View File

@@ -18,7 +18,7 @@ func TestMerge(t *testing.T) {
for j := range testCases[i] {
tc := testCases[i][j]
t.Run(tc.description, func(t *testing.T) {
actual, err := MergeStrings(tc.local, tc.origin, tc.update, !tc.noInfer)
actual, err := MergeStrings(tc.local, tc.origin, tc.update, tc.infer)
if tc.err == nil {
if !assert.NoError(t, err, tc.description) {
t.FailNow()
@@ -47,5 +47,5 @@ type testCase struct {
local string
expected string
err error
noInfer bool
infer bool
}