MockNameTypes populates presetTypesForTesting for a test.
(types map[string]*types.T)
| 26 | |
| 27 | // MockNameTypes populates presetTypesForTesting for a test. |
| 28 | func MockNameTypes(types map[string]*types.T) func() { |
| 29 | presetTypesForTesting = types |
| 30 | return func() { |
| 31 | presetTypesForTesting = nil |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | // SampleDatum is intended to be a more lightweight version of RandDatum for |
| 36 | // when you just need one consistent example of a datum. |
no outgoing calls
searching dependent graphs…