mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
@@ -63,3 +63,10 @@ func TestSecurityRequirement_TestEmptyReq(t *testing.T) {
|
||||
assert.True(t, sr.ContainsEmptyRequirement)
|
||||
|
||||
}
|
||||
|
||||
func TestSecurityRequirement_TestEmptyContent(t *testing.T) {
|
||||
var sr SecurityRequirement
|
||||
_ = sr.Build(context.Background(), nil, &yaml.Node{}, nil)
|
||||
assert.True(t, sr.ContainsEmptyRequirement)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user