Documentation
¶
Overview ¶
Package testing is a helper package for test packages in the CUE project. As such it should only be imported in _test.go files.
Index ¶
- Constants
- func Run[TC any](t *testing.T, table []TC, fn func(t *T, tc *TC))
- type M
- func (t *M) CueContext() *cue.Context
- func (t *M) Fallback() string
- func (t *M) IsDefault() bool
- func (t *M) Name() string
- func (t *M) Runtime() *runtime.Runtime
- func (m *M) TODO_NoSharing(t testing.TB)
- func (m *M) TODO_Sharing(t testing.TB)
- func (m *M) TODO_V2(t testing.TB)
- func (m *M) TODO_V3(t testing.TB)
- type Matrix
- type T
Constants ¶
View Source
const DefaultVersion = "v2"
TODO(mvdan): the default should now be evalv3.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type M ¶
type M struct { // Flags is public to allow tests to customise e.g. logging. Flags cuedebug.Config // contains filtered or unexported fields }
M represents a point in the evaluation matrix of possible runtime configurations.
func (*M) CueContext ¶ added in v0.11.0
func (*M) TODO_NoSharing ¶
func (*M) TODO_Sharing ¶
type Matrix ¶
type Matrix []M
var DefaultOnlyMatrix Matrix = FullMatrix[:1]
var DevOnlyMatrix Matrix = FullMatrix[1:2]
var SmallMatrix Matrix = FullMatrix[:2]
Click to show internal directories.
Click to hide internal directories.