MCPcopy Index your code
hub / github.com/aptly-dev/aptly / TestDownloadTempError

Method TestDownloadTempError

http/temp_test.go:50–55  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

48}
49
50func (s *TempSuite) TestDownloadTempError(c *C) {
51 f, err := DownloadTemp(s.ctx, s.d, s.url+"/doesntexist")
52 c.Assert(err, NotNil)
53 c.Assert(f, IsNil)
54 c.Assert(err, ErrorMatches, "HTTP code 404.*")
55}

Callers

nothing calls this directly

Calls 1

DownloadTempFunction · 0.85

Tested by

no test coverage detected