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

Method TestDependencyString

deb/version_test.go:230–242  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

228}
229
230func (s *VersionSuite) TestDependencyString(c *C) {
231 d, _ := ParseDependency("dpkg(>>1.6)")
232 d.Architecture = "i386"
233 c.Check(d.String(), Equals, "dpkg (>> 1.6) [i386]")
234
235 d, _ = ParseDependency("dpkg")
236 d.Architecture = "i386"
237 c.Check(d.String(), Equals, "dpkg [i386]")
238
239 d, _ = ParseDependency("dpkg:any")
240 c.Check(d.Pkg, Equals, "dpkg")
241 c.Check(d.Architecture, Equals, "")
242}

Callers

nothing calls this directly

Calls 3

ParseDependencyFunction · 0.85
StringMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected