func main() { api := api.NewApi(memory.New()) api.Run() }
func (s *S) SetUpTest(c *C) { s.ng = memory.New() s.api = api.NewApi(s.ng) s.server = httptest.NewServer(s.api.Handler()) httpClient = requests.NewHTTPClient(s.server.URL) }