viztest
No long description provided.
Installation
dagger install github.com/vito/daggerverse/viztest@2ba958d854859e2c7dcb861a3c550e7a8542239a
Entrypoint
Return Type
Viztest
Example
dagger -m github.com/vito/daggerverse/viztest@2ba958d854859e2c7dcb861a3c550e7a8542239a 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@2ba958d854859e2c7dcb861a3c550e7a8542239a 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@2ba958d854859e2c7dcb861a3c550e7a8542239a 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@2ba958d854859e2c7dcb861a3c550e7a8542239a 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()
}
logStdout() 🔗
Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/viztest@2ba958d854859e2c7dcb861a3c550e7a8542239a 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()
}
echo() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
message | String ! | - | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@2ba958d854859e2c7dcb861a3c550e7a8542239a 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)
}
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@2ba958d854859e2c7dcb861a3c550e7a8542239a 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()
}
add() 🔗
Return Type
Viztest !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
diff | Integer | 1 | No description provided |
Example
dagger -m github.com/vito/daggerverse/viztest@2ba958d854859e2c7dcb861a3c550e7a8542239a 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@2ba958d854859e2c7dcb861a3c550e7a8542239a 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@2ba958d854859e2c7dcb861a3c550e7a8542239a 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()
}
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@2ba958d854859e2c7dcb861a3c550e7a8542239a 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()
}
customSpan() 🔗
Return Type
Void !
Example
dagger -m github.com/vito/daggerverse/viztest@2ba958d854859e2c7dcb861a3c550e7a8542239a call \
custom-span
func (m *myModule) example(ctx context.Context) {
return dag.
Viztest().
CustomSpan(ctx)
}
@function
async def example() -> None:
return await (
dag.viztest()
.custom_span()
)
@func()
async example(): Promise<void> {
return dag
.viztest()
.customSpan()
}