(t *testing.T)
| 255 | } |
| 256 | |
| 257 | func setupMockRepoServer(t *testing.T) *repotest.Server { |
| 258 | t.Helper() |
| 259 | srv := repotest.NewTempServer( |
| 260 | t, |
| 261 | repotest.WithChartSourceGlob("testdata/testcharts/*.tgz"), |
| 262 | ) |
| 263 | |
| 264 | t.Logf("Listening on directory %s", srv.Root()) |
| 265 | |
| 266 | if err := srv.LinkIndices(); err != nil { |
| 267 | t.Fatal(err) |
| 268 | } |
| 269 | |
| 270 | return srv |
| 271 | } |
| 272 | |
| 273 | // createTestingMetadata creates a basic chart that depends on reqtest-0.1.0 |
| 274 | // |
no test coverage detected
searching dependent graphs…