Dagger
Search

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
NameTypeDefault ValueDescription
nInteger !-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
NameTypeDefault ValueDescription
nInteger !-No description provided
Example
func (m *myModule) example(ctx context.Context, n int)   {
	return dag.
			Viztest().
			ManyLines(ctx, n)
}

manySpans() πŸ”—

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
nInteger !-No description provided
delayMsInteger !0No 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
NameTypeDefault ValueDescription
batchSizeInteger 1No description provided
delayMsInteger 1000No 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
NameTypeDefault ValueDescription
batchSizeInteger 1No description provided
delayMsInteger 1000No description provided
Example
func (m *myModule) example(ctx context.Context)   {
	return dag.
			Viztest().
			StreamingChunks(ctx)
}

echo() πŸ”—

Return Type
String !
Arguments
NameTypeDefault ValueDescription
messageString !-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
NameTypeDefault ValueDescription
messageString !-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
NameTypeDefault ValueDescription
diffInteger 1No description provided
Example
func (m *myModule) example() *Viztest  {
	return dag.
			Viztest().
			Add()
}

countFiles() πŸ”—

Return Type
Viztest !
Arguments
NameTypeDefault ValueDescription
dirDirectory !-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
NameTypeDefault ValueDescription
afterString "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)
}