QualifierValueEquals determines whether the test-only constant qualifier equals the input value.
(value any)
| 291 | |
| 292 | // QualifierValueEquals determines whether the test-only constant qualifier equals the input value. |
| 293 | func (q *testOnlyQualifier) QualifierValueEquals(value any) bool { |
| 294 | // The input qualifier will always be of type string |
| 295 | return q.ConstantQualifier.Value().Value() == value |
| 296 | } |
| 297 | |
| 298 | // NewConstValue creates a new constant valued Interpretable. |
| 299 | func NewConstValue(id int64, val ref.Val) InterpretableConst { |