viztest
No long description provided.
Installation
dagger install github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c
Entrypoint
Return Type
Viztest
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
func (m *myModule) example() *Viztest {
return dag.
Viztest()
}
@function
def example() -> dag.Viztest:
return (
dag.viztest()
)
@func()
example(): Viztest {
return dag
.viztest()
}
Types
Viztest 🔗
num() 🔗
Return Type
Integer !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
num
func (m *myModule) example(ctx context.Context) int {
return dag.
Viztest().
Num(ctx)
}
@function
async def example() -> int:
return await (
dag.viztest()
.num()
)
@func()
async example(): Promise<number> {
return dag
.viztest()
.num()
}
spam() 🔗
LogThroughput logs the current time in a tight loop.
Return Type
Container !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
spam
func (m *myModule) example() *Container {
return dag.
Viztest().
Spam()
}
@function
def example() -> dagger.Container:
return (
dag.viztest()
.spam()
)
@func()
example(): Container {
return dag
.viztest()
.spam()
}
encapsulate() 🔗
Encapsulate calls a failing function, but ultimately succeeds.
Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
encapsulate
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
Encapsulate(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.encapsulate()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.encapsulate()
}
failEffect() 🔗
FailEffect returns a function whose effects will fail when it runs.
Return Type
Container !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
fail-effect
func (m *myModule) example() *Container {
return dag.
Viztest().
FailEffect()
}
@function
def example() -> dagger.Container:
return (
dag.viztest()
.fail_effect()
)
@func()
example(): Container {
return dag
.viztest()
.failEffect()
}
logStdout() 🔗
Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
log-stdout
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
LogStdout(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.log_stdout()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.logStdout()
}
terminal() 🔗
Return Type
Container !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
terminal
func (m *myModule) example() *Container {
return dag.
Viztest().
Terminal()
}
@function
def example() -> dagger.Container:
return (
dag.viztest()
.terminal()
)
@func()
example(): Container {
return dag
.viztest()
.terminal()
}
primaryLines() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
n | Integer ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
primary-lines --n integer
func (m *myModule) example(ctx context.Context, n int) string {
return dag.
Viztest().
PrimaryLines(ctx, n)
}
@function
async def example(n: int) -> str:
return await (
dag.viztest()
.primary_lines(n)
)
@func()
async example(n: number): Promise<string> {
return dag
.viztest()
.primaryLines(n)
}
manyLines() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
n | Integer ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
many-lines --n integer
func (m *myModule) example(ctx context.Context, n int) {
return dag.
Viztest().
ManyLines(ctx, n)
}
@function
async def example(n: int) -> None:
return await (
dag.viztest()
.many_lines(n)
)
@func()
async example(n: number): Promise<void> {
return dag
.viztest()
.manyLines(n)
}
manySpans() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
n | Integer ! | - | No description provided |
delayMs | Integer ! | 0 | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
many-spans --n integer --delay-ms integer
func (m *myModule) example(ctx context.Context, n int, delayMs int) {
return dag.
Viztest().
ManySpans(ctx, n, delayMs)
}
@function
async def example(n: int, delay_ms: int) -> None:
return await (
dag.viztest()
.many_spans(n, delay_ms)
)
@func()
async example(n: number, delayMs: number): Promise<void> {
return dag
.viztest()
.manySpans(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
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
streaming-logs
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
StreamingLogs(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.streaming_logs()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.streamingLogs()
}
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
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
streaming-chunks
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
StreamingChunks(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.streaming_chunks()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.streamingChunks()
}
echo() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
message | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
echo --message string
func (m *myModule) example(ctx context.Context, message string) string {
return dag.
Viztest().
Echo(ctx, message)
}
@function
async def example(message: str) -> str:
return await (
dag.viztest()
.echo(message)
)
@func()
async example(message: string): Promise<string> {
return dag
.viztest()
.echo(message)
}
uppercase() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
message | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
uppercase --message string
func (m *myModule) example(ctx context.Context, message string) string {
return dag.
Viztest().
Uppercase(ctx, message)
}
@function
async def example(message: str) -> str:
return await (
dag.viztest()
.uppercase(message)
)
@func()
async example(message: string): Promise<string> {
return dag
.viztest()
.uppercase(message)
}
sameDiffClients() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
message | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
same-diff-clients --message string
func (m *myModule) example(ctx context.Context, message string) string {
return dag.
Viztest().
SameDiffClients(ctx, message)
}
@function
async def example(message: str) -> str:
return await (
dag.viztest()
.same_diff_clients(message)
)
@func()
async example(message: string): Promise<string> {
return dag
.viztest()
.sameDiffClients(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
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
accounting
func (m *myModule) example() *Container {
return dag.
Viztest().
Accounting()
}
@function
def example() -> dagger.Container:
return (
dag.viztest()
.accounting()
)
@func()
example(): Container {
return dag
.viztest()
.accounting()
}
deepSleep() 🔗
DeepSleep sleeps forever.
Return Type
Container !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
deep-sleep
func (m *myModule) example() *Container {
return dag.
Viztest().
DeepSleep()
}
@function
def example() -> dagger.Container:
return (
dag.viztest()
.deep_sleep()
)
@func()
example(): Container {
return dag
.viztest()
.deepSleep()
}
add() 🔗
Return Type
Viztest !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
diff | Integer | 1 | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
add
func (m *myModule) example() *Viztest {
return dag.
Viztest().
Add()
}
@function
def example() -> dag.Viztest:
return (
dag.viztest()
.add()
)
@func()
example(): Viztest {
return dag
.viztest()
.add()
}
countFiles() 🔗
Return Type
Viztest !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
count-files --dir DIR_PATH
func (m *myModule) example(dir *Directory) *Viztest {
return dag.
Viztest().
CountFiles(dir)
}
@function
def example(dir: dagger.Directory) -> dag.Viztest:
return (
dag.viztest()
.count_files(dir)
)
@func()
example(dir: Directory): Viztest {
return dag
.viztest()
.countFiles(dir)
}
logStderr() 🔗
Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
log-stderr
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
LogStderr(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.log_stderr()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.logStderr()
}
failLog() 🔗
Fail fails after waiting for a certain amount of time.
Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
fail-log
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
FailLog(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.fail_log()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.failLog()
}
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
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
fail
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
Fail(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.fail()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.fail()
}
service() 🔗
Return Type
Service !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
service
func (m *myModule) example() *Service {
return dag.
Viztest().
Service()
}
@function
def example() -> dagger.Service:
return (
dag.viztest()
.service()
)
@func()
example(): Service {
return dag
.viztest()
.service()
}
pending() 🔗
Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
pending
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
Pending(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.pending()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.pending()
}
colors16() 🔗
Return Type
String !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
colors-1-6
func (m *myModule) example(ctx context.Context) string {
return dag.
Viztest().
Colors16(ctx)
}
@function
async def example() -> str:
return await (
dag.viztest()
.colors16()
)
@func()
async example(): Promise<string> {
return dag
.viztest()
.colors16()
}
colors256() 🔗
Return Type
String !
Example
dagger -m github.com/vito/daggerverse/viztest@7114f8edb3da45c16ae8fa1954c3c9598e72c41c call \
colors-2-5-6
func (m *myModule) example(ctx context.Context) string {
return dag.
Viztest().
Colors256(ctx)
}
@function
async def example() -> str:
return await (
dag.viztest()
.colors256()
)
@func()
async example(): Promise<string> {
return dag
.viztest()
.colors256()
}