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

Function testNestedOptions

options/options_test.go:210–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208}
209
210func testNestedOptions() *options.Options {
211 o := testOptions()
212
213 child := o.AddChild()
214 child.Set("string_key", "child_string_value")
215 child.Set("int_key", 84)
216 child.Set("child_only_key", "only_in_child")
217
218 grandChild := child.AddChild()
219 grandChild.Set("string_key", "grandchild_string_value")
220 grandChild.Set("int_key", 168)
221 grandChild.Set("grandchild_only_key", "only_in_grandchild")
222
223 return o
224}
225
226func (s *OptionsTestSuite) TestDepth() {
227 o := testNestedOptions()

Callers 6

TestDepthMethod · 0.85
TestMapMethod · 0.85
TestNestedMapMethod · 0.85
BenchmarkLogValueFunction · 0.85
BenchmarkNestedMapFunction · 0.85
BenchmarkMapFunction · 0.85

Calls 3

testOptionsFunction · 0.85
AddChildMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected