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) {
158
158
},
159
159
val : "val" ,
160
160
},
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 , * profileContext ) (any , error ) {
179
+ return "" , nil
180
+ },
181
+ Setter : func (context.Context , * profileContext , any ) error {
182
+ return nil
183
+ },
184
+ },
185
+ },
186
+ },
187
+ val : "val" ,
188
+ },
161
189
}
162
190
163
191
for _ , tt := range tests {
You can’t perform that action at this time.
0 commit comments