(val value)
| 1119 | } |
| 1120 | |
| 1121 | func (i *interpreter) getString(val value) (valueString, error) { |
| 1122 | switch v := val.(type) { |
| 1123 | case valueString: |
| 1124 | return v, nil |
| 1125 | default: |
| 1126 | return nil, i.typeErrorSpecific(val, emptyString()) |
| 1127 | } |
| 1128 | } |
| 1129 | |
| 1130 | //nolint:unused |
| 1131 | func (i *interpreter) evaluateString(pv potentialValue) (valueString, error) { |
no test coverage detected