Skip to content

Commit 3f1473f

Browse files
more allow -> use renames
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
1 parent 3e1c370 commit 3f1473f

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

go/vt/mysqlctl/compression_external_decompressor_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,49 +26,49 @@ func TestResolveExternalDecompressor(t *testing.T) {
2626
tests := []struct {
2727
name string
2828
cliDecompressorCmd string
29-
allowManifest bool
29+
useManifest bool
3030
manifestDecompressor string
3131
expected string
3232
}{
3333
{
3434
name: "CLI flag takes precedence over manifest",
3535
cliDecompressorCmd: "zstd -d",
36-
allowManifest: true,
36+
useManifest: true,
3737
manifestDecompressor: "gzip -d",
3838
expected: "zstd -d",
3939
},
4040
{
41-
name: "CLI flag takes precedence even when allow-manifest is false",
41+
name: "CLI flag takes precedence even when use-manifest is false",
4242
cliDecompressorCmd: "zstd -d",
43-
allowManifest: false,
43+
useManifest: false,
4444
manifestDecompressor: "gzip -d",
4545
expected: "zstd -d",
4646
},
4747
{
48-
name: "manifest used when allow-manifest is true and no CLI flag",
48+
name: "manifest used when use-manifest is true and no CLI flag",
4949
cliDecompressorCmd: "",
50-
allowManifest: true,
50+
useManifest: true,
5151
manifestDecompressor: "gzip -d",
5252
expected: "gzip -d",
5353
},
5454
{
55-
name: "manifest ignored when allow-manifest is false",
55+
name: "manifest ignored when use-manifest is false",
5656
cliDecompressorCmd: "",
57-
allowManifest: false,
57+
useManifest: false,
5858
manifestDecompressor: "gzip -d",
5959
expected: "",
6060
},
6161
{
6262
name: "empty when nothing is set",
6363
cliDecompressorCmd: "",
64-
allowManifest: false,
64+
useManifest: false,
6565
manifestDecompressor: "",
6666
expected: "",
6767
},
6868
{
69-
name: "empty when allow-manifest is true but manifest is empty",
69+
name: "empty when use-manifest is true but manifest is empty",
7070
cliDecompressorCmd: "",
71-
allowManifest: true,
71+
useManifest: true,
7272
manifestDecompressor: "",
7373
expected: "",
7474
},
@@ -84,7 +84,7 @@ func TestResolveExternalDecompressor(t *testing.T) {
8484
})
8585

8686
ExternalDecompressorCmd = tt.cliDecompressorCmd
87-
ExternalDecompressorUseManifest = tt.allowManifest
87+
ExternalDecompressorUseManifest = tt.useManifest
8888

8989
result := resolveExternalDecompressor(tt.manifestDecompressor)
9090
assert.Equal(t, tt.expected, result)

0 commit comments

Comments
 (0)