mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-07 20:47:45 +00:00
Removed the ModifiedAndRemoved and Moved change types from the library.
They are not useful and will create a lot of noise, The context will always be available, but changes in context will not result in a recorded change. Signed-off-by: Dave Shanley <dave@quobix.com>
This commit is contained in:
@@ -213,9 +213,7 @@ email: dave@quobix.com`
|
||||
|
||||
// compare.
|
||||
extChanges := CompareContact(&lDoc, &rDoc)
|
||||
assert.Equal(t, 2, extChanges.TotalChanges())
|
||||
assert.Equal(t, Moved, extChanges.Changes[0].ChangeType)
|
||||
assert.Equal(t, ModifiedAndMoved, extChanges.Changes[1].ChangeType)
|
||||
assert.Equal(t, 1, extChanges.TotalChanges())
|
||||
}
|
||||
|
||||
func TestCompareContact_Identical(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user