viztest
No long description provided.
Installation
dagger install github.com/vito/daggerverse/viztest@f6785759f2b2e79bc06ad85aef7c81893870e120
Entrypoint
Return Type
Viztest
Example
func (m *myModule) example() *Viztest {
return dag.
Viztest()
}
Types
Viztest π
num() π
Return Type
Integer !
Example
func (m *myModule) example(ctx context.Context) int {
return dag.
Viztest().
Num(ctx)
}
spam() π
LogThroughput logs the current time in a tight loop.
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
Viztest().
Spam()
}
encapsulate() π
Encapsulate calls a failing function, but ultimately succeeds.
Return Type
Void !
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
Encapsulate(ctx)
}
failEffect() π
FailEffect returns a function whose effects will fail when it runs.
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
Viztest().
FailEffect()
}
logStdout() π
Return Type
Void !
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
LogStdout(ctx)
}
primaryLines() π
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
n | Integer ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, n int) string {
return dag.
Viztest().
PrimaryLines(ctx, n)
}
manyLines() π
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
n | Integer ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, n int) {
return dag.
Viztest().
ManyLines(ctx, n)
}
manySpans() π
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
n | Integer ! | - | No description provided |
delayMs | Integer ! | 0 | No description provided |
Example
func (m *myModule) example(ctx context.Context, n int, delayMs int) {
return dag.
Viztest().
ManySpans(ctx, n, delayMs)
}
streamingLogs() π
Continuously prints batches of logs on an interval (default 1 per second).
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
batchSize | Integer | 1 | No description provided |
delayMs | Integer | 1000 | No description provided |
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
StreamingLogs(ctx)
}
streamingChunks() π
Continuously prints batches of logs on an interval (default 1 per second).
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
batchSize | Integer | 1 | No description provided |
delayMs | Integer | 1000 | No description provided |
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
StreamingChunks(ctx)
}
echo() π
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
message | String ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, message string) string {
return dag.
Viztest().
Echo(ctx, message)
}
sameDiffClients() π
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
message | String ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, message string) string {
return dag.
Viztest().
SameDiffClients(ctx, message)
}
accounting() π
Accounting returns a container that sleeps for 1 second and then sleeps for 2 seconds.
It can be used to test UI cues for tracking down the place where a slow operation is configured, which is more interesting than the place where it is un-lazied when youβre trying to figure out where to optimize.
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
Viztest().
Accounting()
}
deepSleep() π
DeepSleep sleeps forever.
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
Viztest().
DeepSleep()
}
add() π
Return Type
Viztest !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
diff | Integer | 1 | No description provided |
Example
func (m *myModule) example() *Viztest {
return dag.
Viztest().
Add()
}
countFiles() π
Return Type
Viztest !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
Example
func (m *myModule) example(dir *Directory) *Viztest {
return dag.
Viztest().
CountFiles(dir)
}
logStderr() π
Return Type
Void !
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
LogStderr(ctx)
}
failLog() π
Fail fails after waiting for a certain amount of time.
Return Type
Void !
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
FailLog(ctx)
}
fail() π
Fail fails after waiting for a certain amount of time.
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
after | String | "10" | No description provided |
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
Fail(ctx)
}
service() π
Return Type
Service !
Example
func (m *myModule) example() *Service {
return dag.
Viztest().
Service()
}
pending() π
Return Type
Void !
Example
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
Pending(ctx)
}