mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
removing ineffectual assignments in tests
This commit is contained in:
@@ -87,7 +87,7 @@ func TestBuildPath_WithTrailingPeriod(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestFindNodesWithoutDeserializing(t *testing.T) {
|
func TestFindNodesWithoutDeserializing(t *testing.T) {
|
||||||
root, err := FindNodes(getPetstore(), "$")
|
root, _ := FindNodes(getPetstore(), "$")
|
||||||
nodes, err := FindNodesWithoutDeserializing(root[0], "$.info.contact")
|
nodes, err := FindNodesWithoutDeserializing(root[0], "$.info.contact")
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.NotNil(t, nodes)
|
assert.NotNil(t, nodes)
|
||||||
@@ -95,7 +95,7 @@ func TestFindNodesWithoutDeserializing(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestFindNodesWithoutDeserializing_InvalidPath(t *testing.T) {
|
func TestFindNodesWithoutDeserializing_InvalidPath(t *testing.T) {
|
||||||
root, err := FindNodes(getPetstore(), "$")
|
root, _ := FindNodes(getPetstore(), "$")
|
||||||
nodes, err := FindNodesWithoutDeserializing(root[0], "I love a good curry")
|
nodes, err := FindNodesWithoutDeserializing(root[0], "I love a good curry")
|
||||||
assert.Error(t, err)
|
assert.Error(t, err)
|
||||||
assert.Nil(t, nodes)
|
assert.Nil(t, nodes)
|
||||||
|
|||||||
Reference in New Issue
Block a user