mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
chore: add more test coverage
This commit is contained in:
@@ -110,6 +110,10 @@ func (d *DocumentChanges) GetAllChanges() []*Change {
|
||||
|
||||
// TotalBreakingChanges returns a total count of all breaking changes made in the Document
|
||||
func (d *DocumentChanges) TotalBreakingChanges() int {
|
||||
if d == nil {
|
||||
return 0
|
||||
}
|
||||
|
||||
c := d.PropertyChanges.TotalBreakingChanges()
|
||||
if d.InfoChanges != nil {
|
||||
c += d.InfoChanges.TotalBreakingChanges()
|
||||
|
||||
Reference in New Issue
Block a user