Skip to content

Commit ee6e7aa

Browse files
committed
add context-aware API variants and improve cross-platform test coverage
1 parent 226f06f commit ee6e7aa

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
ROADMAP.md
2+
coverage.out

appconfig_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ func readCommandLog(t *testing.T, path string) []string {
6565
return nil
6666
}
6767

68-
return strings.Split(text, "\n")
68+
lines := strings.Split(text, "\n")
69+
for i, line := range lines {
70+
lines[i] = strings.TrimSuffix(line, "\r")
71+
}
72+
return lines
6973
}
7074

7175
func TestWriteGitProxy(t *testing.T) {

0 commit comments

Comments
 (0)