(t *testing.T)
| 2049 | } |
| 2050 | |
| 2051 | func TestEncodeBase64_CorrectlyEncodesInputBytes(t *testing.T) { |
| 2052 | t.Parallel() |
| 2053 | input := []byte{8, 0, 0, 16} |
| 2054 | reader := bytes.NewReader(input) |
| 2055 | want := "CAAAEA==" |
| 2056 | got, err := script.NewPipe().WithReader(reader).EncodeBase64().String() |
| 2057 | if err != nil { |
| 2058 | t.Fatal(err) |
| 2059 | } |
| 2060 | if got != want { |
| 2061 | t.Logf("input %#v incorrectly encoded:", input) |
| 2062 | t.Error(cmp.Diff(want, got)) |
| 2063 | } |
| 2064 | } |
| 2065 | |
| 2066 | func TestWithStdErr_IsConcurrencySafeAfterExec(t *testing.T) { |
| 2067 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…