We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3eec7b commit 1e19ef0Copy full SHA for 1e19ef0
internal/orchestrator/modelsindex/modelsindex_test.go
@@ -22,7 +22,11 @@ func TestGenerateModelsIndexFromFile(t *testing.T) {
22
modelsIndex, err := GenerateModelsIndexFromFile(paths.New("testdata"))
23
require.NoError(t, err)
24
25
- model, found := modelsIndex.GetModelByID("face-detection")
+ model, found := modelsIndex.GetModelByID("not-existing-model")
26
+ assert.False(t, found)
27
+ assert.Nil(t, model)
28
+
29
+ model, found = modelsIndex.GetModelByID("face-detection")
30
assert.Equal(t, "brick", model.Runner)
31
require.True(t, found, "face-detection should be found")
32
assert.Equal(t, "face-detection", model.ID)
0 commit comments