Skip to content

Commit 8bbb3fa

Browse files
committed
address issue #590
Also move to our own fork of testify.
1 parent 73ef933 commit 8bbb3fa

235 files changed

Lines changed: 562 additions & 331 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arazzo/coverage_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
high "github.com/pb33f/libopenapi/datamodel/high/arazzo"
1919
v3high "github.com/pb33f/libopenapi/datamodel/high/v3"
2020
"github.com/pb33f/libopenapi/orderedmap"
21-
"github.com/stretchr/testify/assert"
22-
"github.com/stretchr/testify/require"
21+
"github.com/pb33f/testify/assert"
22+
"github.com/pb33f/testify/require"
2323
"go.yaml.in/yaml/v4"
2424
)
2525

arazzo/criterion_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
"github.com/pb33f/libopenapi/arazzo/expression"
1010
high "github.com/pb33f/libopenapi/datamodel/high/arazzo"
11-
"github.com/stretchr/testify/assert"
12-
"github.com/stretchr/testify/require"
11+
"github.com/pb33f/testify/assert"
12+
"github.com/pb33f/testify/require"
1313
)
1414

1515
func TestEvaluateCriterion_SimpleCondition_StatusCodeComparison(t *testing.T) {

arazzo/engine_coverage_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
high "github.com/pb33f/libopenapi/datamodel/high/arazzo"
2020
v3high "github.com/pb33f/libopenapi/datamodel/high/v3"
2121
"github.com/pb33f/libopenapi/orderedmap"
22-
"github.com/stretchr/testify/assert"
23-
"github.com/stretchr/testify/require"
22+
"github.com/pb33f/testify/assert"
23+
"github.com/pb33f/testify/require"
2424
"go.yaml.in/yaml/v4"
2525
)
2626

@@ -2067,8 +2067,8 @@ func TestFetchSourceBytes_WindowsDriveInHost(t *testing.T) {
20672067
driveAndPath := filepath.ToSlash(testFile)
20682068
fakeURL := &url.URL{
20692069
Scheme: "file",
2070-
Host: driveAndPath[:2], // e.g. "/p" on Unix, "C:" on Windows
2071-
Path: driveAndPath[2:], // rest of path
2070+
Host: driveAndPath[:2], // e.g. "/p" on Unix, "C:" on Windows
2071+
Path: driveAndPath[2:], // rest of path
20722072
}
20732073

20742074
// This only works as a Windows drive when Host is like "X:" (letter + colon).

arazzo/engine_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import (
1111
"github.com/pb33f/libopenapi/arazzo/expression"
1212
high "github.com/pb33f/libopenapi/datamodel/high/arazzo"
1313
"github.com/pb33f/libopenapi/orderedmap"
14-
"github.com/stretchr/testify/assert"
15-
"github.com/stretchr/testify/require"
14+
"github.com/pb33f/testify/assert"
15+
"github.com/pb33f/testify/require"
1616
"go.yaml.in/yaml/v4"
1717
)
1818

arazzo/expression/evaluator_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package expression
66
import (
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
9+
"github.com/pb33f/testify/assert"
1010
"go.yaml.in/yaml/v4"
1111
)
1212

@@ -56,8 +56,8 @@ nested:
5656
a~c: tilde
5757
`),
5858
ResponseHeaders: map[string]string{
59-
"Content-Type": "application/json",
60-
"X-Request-Id": "req-999",
59+
"Content-Type": "application/json",
60+
"X-Request-Id": "req-999",
6161
},
6262
ResponseBody: buildYAMLNode(t, `results:
6363
- id: 1

arazzo/expression/gap_coverage_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ package expression
66
import (
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
10-
"github.com/stretchr/testify/require"
9+
"github.com/pb33f/testify/assert"
10+
"github.com/pb33f/testify/require"
1111
"go.yaml.in/yaml/v4"
1212
)
1313

arazzo/expression/parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package expression
66
import (
77
"testing"
88

9-
"github.com/stretchr/testify/assert"
9+
"github.com/pb33f/testify/assert"
1010
)
1111

1212
// ---------------------------------------------------------------------------

arazzo/final_coverage_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717

1818
"github.com/pb33f/libopenapi/arazzo/expression"
1919
high "github.com/pb33f/libopenapi/datamodel/high/arazzo"
20-
"github.com/stretchr/testify/assert"
21-
"github.com/stretchr/testify/require"
20+
"github.com/pb33f/testify/assert"
21+
"github.com/pb33f/testify/require"
2222
"go.yaml.in/yaml/v4"
2323
)
2424

arazzo/gap_coverage_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import (
1818

1919
"github.com/pb33f/libopenapi/arazzo/expression"
2020
high "github.com/pb33f/libopenapi/datamodel/high/arazzo"
21+
v3high "github.com/pb33f/libopenapi/datamodel/high/v3"
2122
lowmodel "github.com/pb33f/libopenapi/datamodel/low"
2223
lowarazzo "github.com/pb33f/libopenapi/datamodel/low/arazzo"
23-
v3high "github.com/pb33f/libopenapi/datamodel/high/v3"
2424
"github.com/pb33f/libopenapi/orderedmap"
25-
"github.com/stretchr/testify/assert"
26-
"github.com/stretchr/testify/require"
25+
"github.com/pb33f/testify/assert"
26+
"github.com/pb33f/testify/require"
2727
"go.yaml.in/yaml/v4"
2828
)
2929

arazzo/resolve_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515

1616
high "github.com/pb33f/libopenapi/datamodel/high/arazzo"
1717
v3high "github.com/pb33f/libopenapi/datamodel/high/v3"
18-
"github.com/stretchr/testify/assert"
19-
"github.com/stretchr/testify/require"
18+
"github.com/pb33f/testify/assert"
19+
"github.com/pb33f/testify/require"
2020
)
2121

2222
func TestResolveSources_PopulatesDocumentWithConfiguredFactories(t *testing.T) {

0 commit comments

Comments
 (0)