mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 12:37:49 +00:00
Merge branch 'main' into ordered-libopenapi
This commit is contained in:
@@ -99,6 +99,18 @@ func TestNewMockGeneratorWithDictionary(t *testing.T) {
|
||||
assert.NotNil(t, mg)
|
||||
}
|
||||
|
||||
func TestMockGenerator_GenerateJSONMock_NoObject(t *testing.T) {
|
||||
|
||||
mg := NewMockGenerator(JSON)
|
||||
|
||||
var isNil any
|
||||
isNil = nil
|
||||
|
||||
mock, err := mg.GenerateMock(isNil, "")
|
||||
assert.NoError(t, err)
|
||||
assert.Nil(t, mock)
|
||||
}
|
||||
|
||||
func TestMockGenerator_GenerateJSONMock_BadObject(t *testing.T) {
|
||||
type NotMockable struct {
|
||||
pizza string
|
||||
|
||||
Reference in New Issue
Block a user