File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Mocks for testing."""
22
33def _rctx (os_name = "linux" , os_arch = "x86_64" , environ = None , ** kwargs ):
4- """Creates a mock of repository_ctx or module_ctx.
5-
6- Args:
7- os_name: The OS name to mock (e.g., "linux", "Mac OS X", "windows").
8- os_arch: The OS architecture to mock (e.g., "x86_64", "aarch64").
9- environ: A dictionary representing the environment variables.
10- **kwargs: Additional attributes to add to the mock struct.
11-
12- Returns:
13- A struct mocking repository_ctx.
4+ """Creates a mock of repository_ctx or module_ctx.
5+
6+ Args:
7+ os_name: The OS name to mock (e.g., "linux", "Mac OS X", "windows").
8+ os_arch: The OS architecture to mock (e.g., "x86_64", "aarch64").
9+ environ: A dictionary representing the environment variables.
10+ **kwargs: Additional attributes to add to the mock struct.
11+
12+ Returns:
13+ A struct mocking repository_ctx.
1414 """
1515 if environ == None :
1616 environ = {}
You can’t perform that action at this time.
0 commit comments