chore: refactor log limit in rest (#3572)

This commit is contained in:
Kevin Wan
2023-09-16 22:33:30 +08:00
committed by GitHub
parent cc21f5fae2
commit 0dcede6457
7 changed files with 50 additions and 15 deletions

View File

@@ -24,3 +24,8 @@ func TestCountLines(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, 4, lines)
}
func TestCountLinesError(t *testing.T) {
_, err := CountLines("not-exist")
assert.NotNil(t, err)
}