QualifyIfPresent returns whether the target field in the test-only expression is present.
(vars Activation, obj any, presenceOnly bool)
| 285 | |
| 286 | // QualifyIfPresent returns whether the target field in the test-only expression is present. |
| 287 | func (q *testOnlyQualifier) QualifyIfPresent(vars Activation, obj any, presenceOnly bool) (any, bool, error) { |
| 288 | // Only ever test for presence. |
| 289 | return q.ConstantQualifier.QualifyIfPresent(vars, obj, true) |
| 290 | } |
| 291 | |
| 292 | // QualifierValueEquals determines whether the test-only constant qualifier equals the input value. |
| 293 | func (q *testOnlyQualifier) QualifierValueEquals(value any) bool { |
nothing calls this directly
no test coverage detected