MCPcopy
hub / github.com/benbjohnson/litestream / TestLTXCommand_UsageOmitsReplicaFlag

Function TestLTXCommand_UsageOmitsReplicaFlag

cmd/litestream/ltx_test.go:80–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func TestLTXCommand_UsageOmitsReplicaFlag(t *testing.T) {
81 output := captureLTXCommandStdout(t, func() {
82 (&LTXCommand{}).Usage()
83 })
84
85 for _, substr := range []string{"-replica NAME", "litestream ltx -replica"} {
86 if strings.Contains(output, substr) {
87 t.Fatalf("usage contains stale replica flag text %q:\n%s", substr, output)
88 }
89 }
90}
91
92func TestTXIDVarParsing(t *testing.T) {
93 tests := []struct {

Callers

nothing calls this directly

Calls 2

captureLTXCommandStdoutFunction · 0.85
UsageMethod · 0.45

Tested by

no test coverage detected