We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae7ccc commit a42b15eCopy full SHA for a42b15e
pdata/pprofile/location_test.go
@@ -129,6 +129,25 @@ func TestLocationSwitchDictionary(t *testing.T) {
129
return d
130
}(),
131
},
132
+ {
133
+ name: "with a mapping that cannot be found",
134
+ location: func() Location {
135
+ l := NewLocation()
136
+ l.SetMappingIndex(1)
137
+ return l
138
+ }(),
139
+
140
+ src: NewProfilesDictionary(),
141
+ dst: NewProfilesDictionary(),
142
143
+ wantLocation: func() Location {
144
145
146
147
148
+ wantDictionary: NewProfilesDictionary(),
149
+ wantErr: errors.New("invalid mapping index 1"),
150
+ },
151
{
152
name: "with an existing attribute",
153
location: func() Location {
0 commit comments