Skip to content

Commit 20fc7e5

Browse files
make variable capitalization consistent
1 parent 4892e44 commit 20fc7e5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

checks/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ func prettyPrintCLICommand(test api.CLICommandTest, variables map[string]string)
7272
if test.ExitCode != nil {
7373
return fmt.Sprintf("Expect exit code %d", *test.ExitCode)
7474
}
75-
if test.StdoutLinesGt != nil {
76-
return fmt.Sprintf("Expect > %d lines on stdout", *test.StdoutLinesGt)
75+
if test.StdoutLinesGT != nil {
76+
return fmt.Sprintf("Expect > %d lines on stdout", *test.StdoutLinesGT)
7777
}
7878
if test.StdoutContainsAll != nil {
7979
var str strings.Builder

checks/local.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ func evaluateCLICommandTests(stepIndex int, cmd api.CLIStepCLICommand, result ap
8989
break
9090
}
9191
}
92-
case test.StdoutLinesGt != nil:
92+
case test.StdoutLinesGT != nil:
9393
lineCount := stdoutLineCount(result.Stdout)
94-
if lineCount <= *test.StdoutLinesGt {
95-
err = fmt.Errorf("expected stdout to have more than %d lines, got %d", *test.StdoutLinesGt, lineCount)
94+
if lineCount <= *test.StdoutLinesGT {
95+
err = fmt.Errorf("expected stdout to have more than %d lines, got %d", *test.StdoutLinesGT, lineCount)
9696
}
9797
case test.StdoutJq != nil:
9898
err = evaluateStdoutJq(result.Stdout, *test.StdoutJq, result.Variables)

client/lessons.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type CLICommandTest struct {
5050
ExitCode *int `yaml:"exitCode"`
5151
StdoutContainsAll []string `yaml:"stdoutContainsAll"`
5252
StdoutContainsNone []string `yaml:"stdoutContainsNone"`
53-
StdoutLinesGt *int `yaml:"stdoutLinesGt"`
53+
StdoutLinesGT *int `yaml:"stdoutLinesGT"`
5454
StdoutJq *StdoutJqTest `yaml:"stdoutJq"`
5555
}
5656

0 commit comments

Comments
 (0)