MCPcopy
hub / github.com/Jguer/yay / TestHandlePackageVoteNoResults

Function TestHandlePackageVoteNoResults

vote_ops_test.go:18–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16)
17
18func TestHandlePackageVoteNoResults(t *testing.T) {
19 t.Parallel()
20
21 logger := text.NewLogger(io.Discard, io.Discard, strings.NewReader(""), false, "test")
22 err := handlePackageVote(context.Background(), []string{"missing"}, &mockaur.MockAUR{
23 GetFn: func(ctx context.Context, query *aur.Query) ([]aur.Pkg, error) {
24 return nil, nil
25 },
26 }, logger, nil, true)
27 require.NoError(t, err)
28}

Callers

nothing calls this directly

Calls 2

NewLoggerFunction · 0.92
handlePackageVoteFunction · 0.85

Tested by

no test coverage detected