FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
oapi-codegen/cmd/oapi-codegen/oapi-codegen_test.go at v2.8.0 · oapi-codegen/oapi-codegen · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
oapi-codegen
/
oapi-codegen
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1.1k
Star
8.5k
Code
Issues
250
Pull requests
68
Discussions
Actions
Projects
Security and quality
4
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
oapi-codegen
/
cmd
/
oapi-codegen
/
oapi-codegen_test.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (20 loc) · 545 Bytes
Breadcrumbs
oapi-codegen
/
cmd
/
oapi-codegen
/
oapi-codegen_test.go
Copy path
File metadata and controls
26 lines (20 loc) · 545 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package
main
import
(
"testing"
"github.com/oapi-codegen/oapi-codegen/v2/pkg/util"
)
func
TestLoader
(
t
*
testing.
T
) {
paths
:=
[]
string
{
"../../examples/petstore-expanded/petstore-expanded.yaml"
,
"https://raw.githubusercontent.com/oapi-codegen/oapi-codegen/v2.4.1/examples/petstore-expanded/petstore-expanded.yaml"
,
}
for
_
,
v
:=
range
paths
{
swagger
,
err
:=
util
.
LoadSwagger
(
v
)
if
err
!=
nil
{
t
.
Error
(
err
)
}
if
swagger
==
nil
||
swagger
.
Info
==
nil
||
swagger
.
Info
.
Version
==
""
{
t
.
Error
(
"missing data"
)
}
}
}
Back
|
FazBrowse Home
|
New Git URL