Skip to content

Commit 1cdf593

Browse files
committed
improve code coverage
Signed-off-by: Joe Lanford <[email protected]>
1 parent 9ab4ca6 commit 1cdf593

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

internal/declcfg/load_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ func TestReadYAMLOrJSON(t *testing.T) {
3131
file: "testdata/invalid/not-yaml-or-json-object.json",
3232
assertion: require.Error,
3333
},
34+
{
35+
name: "Error/NoSchema",
36+
file: "testdata/invalid/no-schema.yaml",
37+
assertion: require.Error,
38+
},
3439
{
3540
name: "Error/InvalidPackageJSON",
3641
file: "testdata/invalid/invalid-package-json.json",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hello: world
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This is not yaml or json.
1+
[This is not yaml or json.}

0 commit comments

Comments
 (0)