tests
Package main implements the test module for the crypto Dagger module.
Installation
dagger install github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453Entrypoint
Return Type
Tests Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
func (m *MyModule) Example() *dagger.Tests {
return dag.
Tests()
}@function
def example() -> dagger.Tests:
return (
dag.tests()
)@func()
example(): Tests {
return dag
.tests()
}Types
Tests 🔗
all() 🔗
All runs every crypto test inside this suite.
parallel caps how many tests run concurrently. Defaults to 0 (unbounded
fan-out) — each dagger check job runs on its own GH Actions runner, so
in-runner parallelism is bounded by the VM’s CPU/memory, not by the
scheduler. Pass any positive integer to opt into a specific cap.
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| parallel | Integer ! | 0 | No description provided |
Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
all --parallel integerfunc (m *MyModule) Example(ctx context.Context, parallel int) {
return dag.
Tests().
All(ctx, parallel)
}@function
async def example(parallel: int) -> None:
return await (
dag.tests()
.all(parallel)
)@func()
async example(parallel: number): Promise<void> {
return dag
.tests()
.all(parallel)
}ecdsaP256KeyEmitsValidFormats() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
ecdsa-p-2-5-6-key-emits-valid-formatsfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Ecdsap256keyemitsvalidformats(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.ecdsap256keyemitsvalidformats()
)@func()
async example(): Promise<void> {
return dag
.tests()
.ecdsaP256KeyEmitsValidFormats()
}ecdsaP256KeyShouldNotBeCached() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
ecdsa-p-2-5-6-key-should-not-be-cachedfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Ecdsap256keyshouldnotbecached(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.ecdsap256keyshouldnotbecached()
)@func()
async example(): Promise<void> {
return dag
.tests()
.ecdsaP256KeyShouldNotBeCached()
}ecdsaP384KeyShouldNotBeCached() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
ecdsa-p-3-8-4-key-should-not-be-cachedfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Ecdsap384keyshouldnotbecached(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.ecdsap384keyshouldnotbecached()
)@func()
async example(): Promise<void> {
return dag
.tests()
.ecdsaP384KeyShouldNotBeCached()
}ecdsaP521KeyShouldNotBeCached() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
ecdsa-p-5-2-1-key-should-not-be-cachedfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Ecdsap521keyshouldnotbecached(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.ecdsap521keyshouldnotbecached()
)@func()
async example(): Promise<void> {
return dag
.tests()
.ecdsaP521KeyShouldNotBeCached()
}ed25519KeyEmitsValidFormats() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
ed-2-5-5-1-9-key-emits-valid-formatsfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Ed25519keyemitsvalidformats(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.ed25519keyemitsvalidformats()
)@func()
async example(): Promise<void> {
return dag
.tests()
.ed25519KeyEmitsValidFormats()
}ed25519KeyShouldNotBeCached() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
ed-2-5-5-1-9-key-should-not-be-cachedfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Ed25519keyshouldnotbecached(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.ed25519keyshouldnotbecached()
)@func()
async example(): Promise<void> {
return dag
.tests()
.ed25519KeyShouldNotBeCached()
}rsaKeyEmitsValidFormats() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
rsa-key-emits-valid-formatsfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Rsakeyemitsvalidformats(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.rsakeyemitsvalidformats()
)@func()
async example(): Promise<void> {
return dag
.tests()
.rsaKeyEmitsValidFormats()
}rsaKeyShouldNotBeCached() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
rsa-key-should-not-be-cachedfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Rsakeyshouldnotbecached(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.rsakeyshouldnotbecached()
)@func()
async example(): Promise<void> {
return dag
.tests()
.rsaKeyShouldNotBeCached()
}sha256MatchesKnownDigest() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
sha-2-5-6-matches-known-digestfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Sha256matchesknowndigest(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.sha256matchesknowndigest()
)@func()
async example(): Promise<void> {
return dag
.tests()
.sha256MatchesKnownDigest()
}sha384MatchesKnownDigest() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
sha-3-8-4-matches-known-digestfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Sha384matchesknowndigest(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.sha384matchesknowndigest()
)@func()
async example(): Promise<void> {
return dag
.tests()
.sha384MatchesKnownDigest()
}sha3256MatchesKnownDigest() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
sha-3-2-5-6-matches-known-digestfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Sha3256matchesknowndigest(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.sha3256matchesknowndigest()
)@func()
async example(): Promise<void> {
return dag
.tests()
.sha3256MatchesKnownDigest()
}sha3512MatchesKnownDigest() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
sha-3-5-1-2-matches-known-digestfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Sha3512matchesknowndigest(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.sha3512matchesknowndigest()
)@func()
async example(): Promise<void> {
return dag
.tests()
.sha3512MatchesKnownDigest()
}sha512MatchesKnownDigest() 🔗
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/crypto/tests@a17bf411228ae3d544c7c18bcf08dd04c295d453 call \
sha-5-1-2-matches-known-digestfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
Sha512matchesknowndigest(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.sha512matchesknowndigest()
)@func()
async example(): Promise<void> {
return dag
.tests()
.sha512MatchesKnownDigest()
}