Fix some utils, spacing, func naming, test inputs, etc.

This commit is contained in:
Benjamin A. Petersen
2024-03-26 16:22:51 -04:00
parent f86c46e160
commit c6b0820438
9 changed files with 79 additions and 68 deletions
+14
View File
@@ -0,0 +1,14 @@
// Copyright 2024 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package testutil
import "strings"
func SplitByNewline(lineToSplit string) []string {
if len(lineToSplit) == 0 {
return nil
}
return strings.Split(strings.TrimSpace(lineToSplit), "\n")
}