(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestLTXCommand_UsageOmitsReplicaFlag(t *testing.T) { |
| 81 | output := captureLTXCommandStdout(t, func() { |
| 82 | (<XCommand{}).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 | |
| 92 | func TestTXIDVarParsing(t *testing.T) { |
| 93 | tests := []struct { |
nothing calls this directly
no test coverage detected