ProgramOptions implements the Library interface method.
()
| 723 | |
| 724 | // ProgramOptions implements the Library interface method. |
| 725 | func (lib *optionalLib) ProgramOptions() []ProgramOption { |
| 726 | opts := []ProgramOption{ |
| 727 | CustomDecoratorV2(decorateOptionalOr), |
| 728 | } |
| 729 | if lib.version >= 3 { |
| 730 | opts = append(opts, CostTrackerOptions( |
| 731 | cost.OverloadTracker(optionalHasValueValueOverload, trackOptionalHasValue))) |
| 732 | } |
| 733 | return opts |
| 734 | } |
| 735 | |
| 736 | // estimateOptionalHasValue estimates the cost of comparing an optional's value against the input |
| 737 | // argument. |
nothing calls this directly
no test coverage detected