Documentation ¶
Overview ¶
Package plugcore is designed to be imported only from the plug package. All packages except plug or its artifacts must not import this package directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FuncRecorder ¶
type FuncRecorder[T any] struct { // contains filtered or unexported fields }
FuncRecorder records its function callings for later inspection in tests.
func (*FuncRecorder[T]) At ¶
func (r *FuncRecorder[T]) At(i int) T
func (*FuncRecorder[T]) Count ¶
func (r *FuncRecorder[T]) Count() int
func (*FuncRecorder[T]) Record ¶
func (r *FuncRecorder[T]) Record(params Params)
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
func (*Object) SetRecorder ¶
type Recorder ¶
type Recorder interface {
Record(params Params)
}
Recorder is the interface that wraps the Record method.
type Symbol ¶
type Symbol[T any] struct { // contains filtered or unexported fields }
Symbol represents an object that will be replaced.
Click to show internal directories.
Click to hide internal directories.