File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
pkg/ottl/contexts/internal/ctxprofile Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,34 @@ func TestPathGetSetter(t *testing.T) {
158158 },
159159 val : "val" ,
160160 },
161+ {
162+ path : "attributes" ,
163+ keys : []ottl.Key [* profileContext ]{
164+ & pathtest.Key [* profileContext ]{
165+ S : ottltest .Strp ("akey" ),
166+ },
167+ & pathtest.Key [* profileContext ]{
168+ S : ottltest .Strp ("bkey" ),
169+ },
170+ },
171+ val : "val" ,
172+ },
173+ {
174+ path : "attributes" ,
175+ keys : []ottl.Key [* profileContext ]{
176+ & pathtest.Key [* profileContext ]{
177+ G : & ottl.StandardGetSetter [* profileContext ]{
178+ Getter : func (_ context.Context , tCtx * profileContext ) (any , error ) {
179+ return "" , nil
180+ },
181+ Setter : func (_ context.Context , tCtx * profileContext , val any ) error {
182+ return nil
183+ },
184+ },
185+ },
186+ },
187+ val : "val" ,
188+ },
161189 }
162190
163191 for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments