first level testing for rending v3 model in place.

Now onto some hardening tests, lets re-render each spec after reading to check for failures.
This commit is contained in:
Dave Shanley
2023-03-14 06:35:00 -04:00
parent 162d62a229
commit 5d7f22fca7
25 changed files with 417 additions and 265 deletions

View File

@@ -24,7 +24,7 @@ func TestCompareOpenAPIDocuments(t *testing.T) {
modDoc, _ := v3.CreateDocument(infoMod)
changes := CompareOpenAPIDocuments(origDoc, modDoc)
assert.Equal(t, 67, changes.TotalChanges())
assert.Equal(t, 72, changes.TotalChanges())
assert.Equal(t, 17, changes.TotalBreakingChanges())
//
//out, _ := json.MarshalIndent(changes, "", " ")
@@ -151,5 +151,5 @@ func ExampleCompareOpenAPIDocuments() {
// Print out some interesting stats.
fmt.Printf("There are %d changes, of which %d are breaking. %v schemas have changes.",
changes.TotalChanges(), changes.TotalBreakingChanges(), len(schemaChanges))
//Output: There are 67 changes, of which 17 are breaking. 5 schemas have changes.
//Output: There are 72 changes, of which 17 are breaking. 5 schemas have changes.
}