Skip to content

Commit 48a5d4a

Browse files
add t.Helper from lint
1 parent c62f9f8 commit 48a5d4a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/integration/cli_output_compatibility_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ func findHeaderLine(lines []string, requiredCols ...string) int {
119119

120120
// validateCurrentOrgMarker checks that current org entries are properly marked
121121
func validateCurrentOrgMarker(t *testing.T, lines []string, headerLineIdx int) {
122+
t.Helper()
123+
122124
for i := headerLineIdx + 1; i < len(lines); i++ {
123125
line := strings.TrimSpace(lines[i])
124126
if line == "" {
@@ -163,6 +165,8 @@ func Test_InstanceListCommandOutputFormat(t *testing.T) {
163165

164166
// validateColumnOrder ensures columns appear in the expected order for external parsers
165167
func validateColumnOrder(t *testing.T, headerLine string) {
168+
t.Helper()
169+
166170
namePos := strings.Index(headerLine, nameColumn)
167171
statusPos := strings.Index(headerLine, statusColumn)
168172
idPos := strings.Index(headerLine, idColumn)
@@ -296,6 +300,8 @@ func Test_VersionParsingCompatibility(t *testing.T) {
296300

297301
// compareVersions compares two semantic versions and returns true if installed < minimum
298302
func compareVersions(t *testing.T, installedVersion, minVersion string) bool {
303+
t.Helper()
304+
299305
installedComponents := strings.Split(installedVersion, ".")
300306
minComponents := strings.Split(minVersion, ".")
301307

0 commit comments

Comments
 (0)