Files
yay/vote_ops_test.go
T
Jo 15057c8dab misc(ci): add modernize linter and update versioning (#2870)
* add modernize linter

* lint unused

* update imports

* ignore agent info
2026-06-17 21:09:53 +02:00

29 lines
631 B
Go

//go:build !integration
package main
import (
"context"
"io"
"strings"
"testing"
"github.com/Jguer/aur"
"github.com/stretchr/testify/require"
mockaur "github.com/Jguer/yay/v13/pkg/dep/mock"
"github.com/Jguer/yay/v13/pkg/text"
)
func TestHandlePackageVoteNoResults(t *testing.T) {
t.Parallel()
logger := text.NewLogger(io.Discard, io.Discard, strings.NewReader(""), false, "test")
err := handlePackageVote(context.Background(), []string{"missing"}, &mockaur.MockAUR{
GetFn: func(ctx context.Context, query *aur.Query) ([]aur.Pkg, error) {
return nil, nil
},
}, logger, nil, true)
require.NoError(t, err)
}