test_grep_raw_literal() — langchain Function Reference
Architecture documentation for the test_grep_raw_literal() function in sandboxes.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b3f4be31_9727_1370_9fbd_e5b8022642d4["test_grep_raw_literal()"] 44713bb8_64c7_b8af_22f9_b6db34868592["SandboxIntegrationTests"] b3f4be31_9727_1370_9fbd_e5b8022642d4 -->|defined in| 44713bb8_64c7_b8af_22f9_b6db34868592 style b3f4be31_9727_1370_9fbd_e5b8022642d4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/standard-tests/langchain_tests/integration_tests/sandboxes.py lines 152–160
def test_grep_raw_literal(self, sandbox_backend: SandboxBackendProtocol) -> None:
"""Verify `grep_raw()` performs literal matching on special characters."""
if not self.has_sync:
pytest.skip("Sync tests not supported.")
sandbox_backend.write("/tmp/test_sandbox_ops/grep.txt", "a (b)\nstr | int\n")
matches = sandbox_backend.grep_raw("str | int", path="/tmp/test_sandbox_ops")
assert isinstance(matches, list)
assert matches[0]["path"].endswith("/grep.txt")
assert matches[0]["text"].strip() == "str | int"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_grep_raw_literal() do?
test_grep_raw_literal() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/integration_tests/sandboxes.py.
Where is test_grep_raw_literal() defined?
test_grep_raw_literal() is defined in libs/standard-tests/langchain_tests/integration_tests/sandboxes.py at line 152.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free