(start int, end int)
| 18 | ) |
| 19 | |
| 20 | func generateCodespaceList(start int, end int) []*Codespace { |
| 21 | codespacesList := []*Codespace{} |
| 22 | for i := start; i < end; i++ { |
| 23 | codespacesList = append(codespacesList, &Codespace{ |
| 24 | Name: fmt.Sprintf("codespace-%d", i), |
| 25 | }) |
| 26 | } |
| 27 | return codespacesList |
| 28 | } |
| 29 | |
| 30 | func createFakeListEndpointServer(t *testing.T, initialTotal int, finalTotal int) *httptest.Server { |
| 31 | return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
no outgoing calls
no test coverage detected