1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-12 08:23:48 +02:00
woodpecker/pipeline/rpc/line_test.go

19 lines
303 B
Go
Raw Normal View History

2019-04-06 15:44:04 +02:00
package rpc
import (
"testing"
)
func TestLine(t *testing.T) {
line := Line{
Proc: "redis",
Time: 60,
Pos: 1,
Out: "starting redis server",
}
got, want := line.String(), "[redis:L1:60s] starting redis server"
if got != want {
t.Errorf("Wanted line string %q, got %q", want, got)
}
}