(f func())
| 19 | } |
| 20 | |
| 21 | func captureOutput(f func()) string { |
| 22 | old := os.Stdout |
| 23 | r, w, _ := os.Pipe() |
| 24 | os.Stdout = w |
| 25 | f() |
| 26 | w.Close() |
| 27 | os.Stdout = old |
| 28 | var buf bytes.Buffer |
| 29 | buf.ReadFrom(r) |
| 30 | return buf.String() |
| 31 | } |
| 32 | |
| 33 | func TestGetController_ExecuteGet_Users_All(t *testing.T) { |
| 34 | cfg := newTestMainConfig() |
no test coverage detected