MCPcopy
hub / github.com/lxc/incus / TestRemake

Method TestRemake

internal/server/auth/authorization_objects_test.go:205–210  ·  view source on GitHub ↗

Objects shouldn't continuously path escape.

()

Source from the content-addressed store, hash-verified

203
204// Objects shouldn't continuously path escape.
205func (s *objectSuite) TestRemake() {
206 o := ObjectProject("contains/forward/slashes")
207 oSquared, err := ObjectFromString(o.String())
208 s.Nil(err)
209 s.Equal(o.String(), oSquared.String())
210}

Callers

nothing calls this directly

Calls 3

ObjectProjectFunction · 0.85
ObjectFromStringFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected