| 1 | # testdata/corpus/volatile-excluded.txt |
| 2 | # |
| 3 | # Functions listed here are volatile: they return a different value on |
| 4 | # every recalculation, so no single reference value captured by one |
| 5 | # LibreOffice run (or one gencorpus run) can ever match a later run's |
| 6 | # answer -- including this package's own re-evaluation of the same |
| 7 | # corpus file in a later `go test` invocation. TestAgainstReferenceCorpus |
| 8 | # (corpus_test.go) skips any corpus row whose Function is listed here. |
| 9 | # |
| 10 | # This file is a list somebody edits, not a filter somebody widens: it is |
| 11 | # NOT the place to silence an ordinary failing corpus row. Every name |
| 12 | # below must be spelled exactly as calc.Register (or registerClock) |
| 13 | # registered it, and TestExclusionsAreRealFunctions asserts each one is a |
| 14 | # real, currently-registered function -- so this file cannot rot into a |
| 15 | # wildcard that quietly swallows an unrelated regression. |
| 16 | # |
| 17 | # RAND and RANDBETWEEN are the other two volatile functions the plan |
| 18 | # names, but neither is implemented in this task (outside its ~30 |
| 19 | # function scope) -- add each here in the SAME batch that registers it, |
| 20 | # not before, or TestExclusionsAreRealFunctions fails immediately. |
| 21 | |
| 22 | # NOW: returns the current recalculation pass's pinned instant |
| 23 | # (env.Now()) as a date serial. Deterministic WITHIN one pass -- see |
| 24 | # TestClockIsPinnedWithinAPass in corpus_test.go -- but a corpus value |
| 25 | # captured at generation time can never match what a later pass's real |
| 26 | # wall clock produces. |
| 27 | NOW |
| 28 | |
| 29 | # TODAY: same reasoning as NOW, truncated to midnight. |
| 30 | TODAY |
| 31 | |