Documentation Index
Fetch the complete documentation index at: https://docs.aspect.build/llms.txt
Use this file to discover all available pages before exploring further.
Documentation for @bazel_lib@v3.2.0 — View source
Function: assert_contains
Generates a test target which fails if the file doesn’t contain the string.
Depends on bash, as it creates an sh_test target.
Parameters
target to create
Label of a file
a string which should appear in the file
standard attribute for tests
additional named arguments for the resulting sh_test
Function: assert_outputs
Assert that the default outputs of a target are the expected ones.
Parameters
name of the resulting diff_test
string of the label to check the outputs
a list of rootpaths of expected outputs, as they would appear in a runfiles manifest
additional named arguments for the resulting diff_test
Function: assert_archive_contains
Assert that an archive file contains at least the given file entries.
Parameters
name of the resulting sh_test target
Label of the the .tar or .zip file
a (partial) file listing, either as a Label of a file containing it, or a list of strings
“tar” or “zip”. If None, a type will be inferred from the filename.
additional named arguments for the resulting sh_test
Function: assert_directory_contains
Assert that a directory contains at least the given file entries.
Parameters
name of the resulting sh_test target
Label of the directory artifact
a (partial) file listing, either as a Label of a file containing it, or a list of strings
additional named arguments for the resulting sh_test

