test
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/softwaredevelop/daggerverse/hello/test@7b5178708d695b6d84733effcc5c8a0bce39d313
Entrypoint
Return Type
Test
Example
dagger -m github.com/softwaredevelop/daggerverse/hello/test@7b5178708d695b6d84733effcc5c8a0bce39d313 call \
func (m *MyModule) Example() *dagger.Test {
return dag.
Test()
}
@function
def example() -> dagger.Test:
return (
dag.test()
)
@func()
example(): Test {
return dag
.test()
}
Types
Test 🔗
Test is a module for running tests.
all() 🔗
All runs all tests.
Return Type
Void !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello/test@7b5178708d695b6d84733effcc5c8a0bce39d313 call \
all
func (m *MyModule) Example(ctx context.Context) {
return dag.
Test().
All(ctx)
}
@function
async def example() -> None:
return await (
dag.test()
.all()
)
@func()
async example(): Promise<void> {
return dag
.test()
.all()
}
helloContainer() 🔗
HelloContainer tests the HelloContainer function.
Return Type
Void !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello/test@7b5178708d695b6d84733effcc5c8a0bce39d313 call \
hello-container
func (m *MyModule) Example(ctx context.Context) {
return dag.
Test().
HelloContainer(ctx)
}
@function
async def example() -> None:
return await (
dag.test()
.hello_container()
)
@func()
async example(): Promise<void> {
return dag
.test()
.helloContainer()
}
helloStringContainer() 🔗
HelloStringContainer tests the HelloString function.
Return Type
Void !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello/test@7b5178708d695b6d84733effcc5c8a0bce39d313 call \
hello-string-container
func (m *MyModule) Example(ctx context.Context) {
return dag.
Test().
HelloStringContainer(ctx)
}
@function
async def example() -> None:
return await (
dag.test()
.hello_string_container()
)
@func()
async example(): Promise<void> {
return dag
.test()
.helloStringContainer()
}
helloString() 🔗
HelloString tests the HelloString function.
Return Type
Void !
Example
dagger -m github.com/softwaredevelop/daggerverse/hello/test@7b5178708d695b6d84733effcc5c8a0bce39d313 call \
hello-string
func (m *MyModule) Example(ctx context.Context) {
return dag.
Test().
HelloString(ctx)
}
@function
async def example() -> None:
return await (
dag.test()
.hello_string()
)
@func()
async example(): Promise<void> {
return dag
.test()
.helloString()
}