mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 08:06:52 +02:00
e34daae0cf
* Refactor: move cncd/pipeline/ to pipeline/ * Refactor: move pipeline/pipeline/ to pipeline/
19 lines
303 B
Go
19 lines
303 B
Go
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)
|
|
}
|
|
}
|