mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
21 lines
648 B
Go
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)
|
|
//
|
|
//}
|