Documentation
¶
Index ¶
- Variables
- func AssertCommand(t Helper, s *Segment, name string, args ...string)
- func AssertCommandFailure(t *testing.T, s *Segment, name string, args []string, errorString string)
- func AssertCommandResponse(t *testing.T, s *Segment, name string, args []string, expected string)
- func AssertEd25519ArrayEmpty(t *testing.T, s *Segment, h variables.Handle)
- func AssertEd25519ArrayNotEmpty(t *testing.T, s *Segment, h variables.Handle)
- func AssertNoVariable(t *testing.T, s *Segment, h variables.Handle)
- func AssertValue[T types.TypeVal](t *testing.T, s *Segment, h variables.Handle, v T)
- func AssertValueNot[T types.TypeVal](t *testing.T, s *Segment, h variables.Handle, v T)
- func AssertVariable[T types.TypeVal](t *testing.T, s *Segment, h variables.Handle) T
- func CreateTmpTable(q string) (*sql.DB, error)
- func IsEd25519ArrayEmpty(t *testing.T, s *Segment, h variables.Handle) bool
- func PrintVariableStore(t *testing.T, s *Segment)
- func StrToByteSlice(str string, size int) []byte
- type CommandTiming
- type Helper
- type Options
- type Segment
- func (s *Segment) ClearTimingInformation()
- func (s *Segment) DBConnectionString() string
- func (s *Segment) DBType() string
- func (s *Segment) DeleteFromPickleTable(destination string) error
- func (s *Segment) DeleteVariable(h variables.Handle)
- func (s *Segment) GetPeerAddress(nodeID string) string
- func (s *Segment) GetTimingInformation() []commands.Timing
- func (s *Segment) GetVariable(h variables.Handle) (types.TypeVal, error)
- func (s *Segment) IsGPUAvailable() bool
- func (s *Segment) Listen() error
- func (s *Segment) LoadDestination() string
- func (s *Segment) LoadFromPickleTable(h variables.Handle) ([]variables.Pickle, error)
- func (s *Segment) Log(format string, args ...any)
- func (s *Segment) Node() *types.Node
- func (s *Segment) Register(name string, f commands.CommandFunc)
- func (s *Segment) RequestTransferBytes(nodeAddress string, handle string, newHandle string, dtype string, ...) error
- func (s *Segment) RunCommand(name string, args []string) (resp string, err error)
- func (s *Segment) RunCommandWithLogging(name string, args []string, responseRequired bool) (resp string)
- func (s *Segment) SaveDestination() string
- func (s *Segment) SaveToPickleTable(t types.TypeCode, h variables.Handle, opcode string, elementindex int, ...) error
- func (s *Segment) SegmentNodes() map[string]string
- func (s *Segment) SetLoadDestination(v string)
- func (s *Segment) SetPeerAddress(nodeID string, addr string)
- func (s *Segment) SetSaveDestination(v string)
- func (s *Segment) SetVariable(h variables.Handle, value types.TypeVal)
- func (s *Segment) StartHTTPServer() bool
- func (s *Segment) TransferBytes(nodeAddress string, handle string, newHandle string, dtype string, ...) error
- func (s *Segment) Variables() variables.Store
Constants ¶
This section is empty.
Variables ¶
View Source
var GPUHasBeenInitialized = false
Functions ¶
func AssertCommandFailure ¶
func AssertCommandResponse ¶
func AssertEd25519ArrayEmpty ¶
func AssertValue ¶
func AssertValueNot ¶
func AssertVariable ¶
func IsEd25519ArrayEmpty ¶
func PrintVariableStore ¶
PrintVariableStore will print the contents of the variable store after the test assertions have run. This function is useful when you have a failing test and want to see the variable store contents.
func StrToByteSlice ¶
Types ¶
type CommandTiming ¶
type Segment ¶
type Segment struct {
// contains filtered or unexported fields
}
func NewSegment ¶
func NewTestSegment ¶
func NewTestSegment() *Segment
func (*Segment) ClearTimingInformation ¶
func (s *Segment) ClearTimingInformation()
func (*Segment) DBConnectionString ¶
func (*Segment) DeleteFromPickleTable ¶
func (*Segment) DeleteVariable ¶
func (*Segment) GetPeerAddress ¶
func (*Segment) GetTimingInformation ¶
func (*Segment) GetVariable ¶
func (*Segment) IsGPUAvailable ¶
func (*Segment) LoadDestination ¶
func (*Segment) LoadFromPickleTable ¶
func (*Segment) RequestTransferBytes ¶
func (*Segment) RunCommand ¶
func (*Segment) RunCommandWithLogging ¶
func (*Segment) SaveDestination ¶
func (*Segment) SaveToPickleTable ¶
func (*Segment) SegmentNodes ¶
func (*Segment) SetLoadDestination ¶
func (*Segment) SetPeerAddress ¶
func (*Segment) SetSaveDestination ¶
func (*Segment) SetVariable ¶
func (*Segment) StartHTTPServer ¶
func (*Segment) TransferBytes ¶
Click to show internal directories.
Click to hide internal directories.