MCPcopy Create free account
hub / github.com/FastLED/FastLED / create_test_files

Function create_test_files

ci/tests/test_fingerprint_integration.py:28–36  ·  view source on GitHub ↗

Create test files in a temporary directory.

(test_dir: Path, count: int = 10)

Source from the content-addressed store, hash-verified

26
27
28def create_test_files(test_dir: Path, count: int = 10) -> list[Path]:
29 """Create test files in a temporary directory."""
30 test_dir.mkdir(parents=True, exist_ok=True)
31 files: list[Path] = []
32 for i in range(count):
33 file_path = test_dir / f"test_file_{i}.txt"
34 file_path.write_text(f"Content {i}\n")
35 files.append(file_path)
36 return sorted(files)
37
38
39def test_all_caches_basic_functionality() -> None:

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected