MCPcopy Index your code
hub / github.com/riverqueue/river / withCommandBase

Function withCommandBase

cmd/river/rivercli/river_cli_test.go:664–674  ·  view source on GitHub ↗
(t *testing.T, cmd TCommand)

Source from the content-addressed store, hash-verified

662}
663
664func withCommandBase[TCommand Command[TOpts], TOpts CommandOpts](t *testing.T, cmd TCommand) (TCommand, *bytes.Buffer) {
665 t.Helper()
666
667 var out bytes.Buffer
668 cmd.SetCommandBase(&CommandBase{
669 DriverProcurer: &DriverProcurerStub{},
670 Logger: riversharedtest.Logger(t),
671 Out: &out,
672 })
673 return cmd, &out
674}
675
676func TestMigrationComment(t *testing.T) {
677 t.Parallel()

Callers 3

TestMigrateGetFunction · 0.85
TestMigrateListFunction · 0.85
TestVersionFunction · 0.85

Calls 3

LoggerFunction · 0.92
HelperMethod · 0.65
SetCommandBaseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…