Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenharrison committed Nov 24, 2024
1 parent 8195d3b commit 9dc7298
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions checker/api_change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package checker_test
import (
"testing"

"github.com/getkin/kin-openapi/openapi3"
"github.com/stretchr/testify/require"
"github.com/tufin/oasdiff/checker"
"github.com/tufin/oasdiff/load"
Expand Down Expand Up @@ -83,3 +84,9 @@ func TestApiChange_SourceUrl(t *testing.T) {

require.Equal(t, "", apiChangeSourceFile.GetSourceFile())
}

func TestApiChange_WithOrigin(t *testing.T) {
apiChangeSourceFile := apiChange
origin := openapi3.Origin{}
require.True(t, &origin == apiChangeSourceFile.WithOrigin(&origin).Origin)
}

0 comments on commit 9dc7298

Please sign in to comment.