(vars Activation, obj any, presenceTest, presenceOnly bool)
| 847 | } |
| 848 | |
| 849 | func (q *stringQualifier) qualifyInternal(vars Activation, obj any, presenceTest, presenceOnly bool) (any, bool, error) { |
| 850 | s := q.value |
| 851 | switch o := obj.(type) { |
| 852 | case map[string]any: |
| 853 | obj, isKey := o[s] |
| 854 | if isKey { |
| 855 | return obj, true, nil |
| 856 | } |
| 857 | case map[string]string: |
| 858 | obj, isKey := o[s] |
| 859 | if isKey { |
| 860 | return obj, true, nil |
| 861 | } |
| 862 | case map[string]int: |
| 863 | obj, isKey := o[s] |
| 864 | if isKey { |
| 865 | return obj, true, nil |
| 866 | } |
| 867 | case map[string]int32: |
| 868 | obj, isKey := o[s] |
| 869 | if isKey { |
| 870 | return obj, true, nil |
| 871 | } |
| 872 | case map[string]int64: |
| 873 | obj, isKey := o[s] |
| 874 | if isKey { |
| 875 | return obj, true, nil |
| 876 | } |
| 877 | case map[string]uint: |
| 878 | obj, isKey := o[s] |
| 879 | if isKey { |
| 880 | return obj, true, nil |
| 881 | } |
| 882 | case map[string]uint32: |
| 883 | obj, isKey := o[s] |
| 884 | if isKey { |
| 885 | return obj, true, nil |
| 886 | } |
| 887 | case map[string]uint64: |
| 888 | obj, isKey := o[s] |
| 889 | if isKey { |
| 890 | return obj, true, nil |
| 891 | } |
| 892 | case map[string]float32: |
| 893 | obj, isKey := o[s] |
| 894 | if isKey { |
| 895 | return obj, true, nil |
| 896 | } |
| 897 | case map[string]float64: |
| 898 | obj, isKey := o[s] |
| 899 | if isKey { |
| 900 | return obj, true, nil |
| 901 | } |
| 902 | case map[string]bool: |
| 903 | obj, isKey := o[s] |
| 904 | if isKey { |
| 905 | return obj, true, nil |
| 906 | } |
no test coverage detected