(vars Activation, obj any, presenceTest, presenceOnly bool)
| 1002 | } |
| 1003 | |
| 1004 | func (q *stringQualifier) qualifyInternal(vars Activation, obj any, presenceTest, presenceOnly bool) (any, bool, error) { |
| 1005 | s := q.value |
| 1006 | switch o := obj.(type) { |
| 1007 | case map[string]any: |
| 1008 | obj, isKey := o[s] |
| 1009 | if isKey { |
| 1010 | return obj, true, nil |
| 1011 | } |
| 1012 | case map[string]string: |
| 1013 | obj, isKey := o[s] |
| 1014 | if isKey { |
| 1015 | return obj, true, nil |
| 1016 | } |
| 1017 | case map[string]int: |
| 1018 | obj, isKey := o[s] |
| 1019 | if isKey { |
| 1020 | return obj, true, nil |
| 1021 | } |
| 1022 | case map[string]int32: |
| 1023 | obj, isKey := o[s] |
| 1024 | if isKey { |
| 1025 | return obj, true, nil |
| 1026 | } |
| 1027 | case map[string]int64: |
| 1028 | obj, isKey := o[s] |
| 1029 | if isKey { |
| 1030 | return obj, true, nil |
| 1031 | } |
| 1032 | case map[string]uint: |
| 1033 | obj, isKey := o[s] |
| 1034 | if isKey { |
| 1035 | return obj, true, nil |
| 1036 | } |
| 1037 | case map[string]uint32: |
| 1038 | obj, isKey := o[s] |
| 1039 | if isKey { |
| 1040 | return obj, true, nil |
| 1041 | } |
| 1042 | case map[string]uint64: |
| 1043 | obj, isKey := o[s] |
| 1044 | if isKey { |
| 1045 | return obj, true, nil |
| 1046 | } |
| 1047 | case map[string]float32: |
| 1048 | obj, isKey := o[s] |
| 1049 | if isKey { |
| 1050 | return obj, true, nil |
| 1051 | } |
| 1052 | case map[string]float64: |
| 1053 | obj, isKey := o[s] |
| 1054 | if isKey { |
| 1055 | return obj, true, nil |
| 1056 | } |
| 1057 | case map[string]bool: |
| 1058 | obj, isKey := o[s] |
| 1059 | if isKey { |
| 1060 | return obj, true, nil |
| 1061 | } |
no test coverage detected