test(search): assert CVEDiffListForImages nil-cve response fields

Agent-Logs-Url: https://github.com/project-zot/zot/sessions/693982ce-babb-4ab8-a58d-83494a0f8f9b

Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-26 06:45:20 +00:00
committed by GitHub
parent 8054651abe
commit fe6203c027
+4 -1
View File
@@ -752,9 +752,12 @@ func TestQueryResolverErrors(t *testing.T) {
qr := queryResolver{resolverConfig}
_, err := qr.CVEDiffListForImages(ctx, gql_generated.ImageInput{}, gql_generated.ImageInput{},
result, err := qr.CVEDiffListForImages(ctx, gql_generated.ImageInput{}, gql_generated.ImageInput{},
&gql_generated.PageInput{}, nil, nil)
So(err, ShouldBeNil)
So(result, ShouldNotBeNil)
So(result.Minuend, ShouldNotBeNil)
So(result.Subtrahend, ShouldNotBeNil)
})
Convey("CVEListForImage nil cveinfo returns empty result", func() {