Function
ioLogger
(t *testing.T, wg *sync.WaitGroup)
Source from the content-addressed store, hash-verified
| 1036 | } |
| 1037 | |
| 1038 | func ioLogger(t *testing.T, wg *sync.WaitGroup) io.WriteCloser { |
| 1039 | r, w := io.Pipe() |
| 1040 | wg.Add(1) |
| 1041 | go func() { |
| 1042 | defer wg.Done() |
| 1043 | defer r.Close() |
| 1044 | |
| 1045 | scanner := bufio.NewScanner(r) |
| 1046 | for scanner.Scan() { |
| 1047 | t.Log(scanner.Text()) |
| 1048 | } |
| 1049 | }() |
| 1050 | |
| 1051 | return w |
| 1052 | } |
| 1053 | |
| 1054 | func TestGetListOfPackages(t *testing.T) { |
| 1055 | opts := optionsFromTarget("", sema) |
Tested by
no test coverage detected