Files
libopenapi/what-changed/what_changed_test.go
Dave Shanley b510be3563 what-changed code in place.
Let the explosions begin!
2022-11-18 11:00:34 -05:00

21 lines
648 B
Go

// Copyright 2022 Princess B33f Heavy Industries / Dave Shanley
// SPDX-License-Identifier: MIT
package what_changed
//func TestCompareOpenAPIDocuments(t *testing.T) {
//
// original, _ := ioutil.ReadFile("../test_specs/burgershop.openapi.yaml")
// modified, _ := ioutil.ReadFile("../test_specs/burgershop.openapi-modified.yaml")
// infoOrig, _ := datamodel.ExtractSpecInfo(original)
// infoMod, _ := datamodel.ExtractSpecInfo(modified)
//
// origDoc, _ := v3.CreateDocument(infoOrig)
// modDoc, _ := v3.CreateDocument(infoMod)
//
// changes := CompareOpenAPIDocuments(origDoc, modDoc)
//
// assert.Nil(t, changes)
//
//}