MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / TestDepth

Method TestDepth

options/options_test.go:226–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224}
225
226func (s *OptionsTestSuite) TestDepth() {
227 o := testNestedOptions()
228
229 s.Require().Equal(0, o.Depth())
230 s.Require().Equal(1, o.Child().Depth())
231 s.Require().Equal(2, o.Child().Child().Depth())
232}
233
234func (s *OptionsTestSuite) TestMap() {
235 s.Run("WithoutChildren", func() {

Callers

nothing calls this directly

Calls 3

testNestedOptionsFunction · 0.85
DepthMethod · 0.80
ChildMethod · 0.80

Tested by

no test coverage detected