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

Function create_test_files

ci/test_hash_fingerprint_stress.py:59–67  ·  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

57
58
59def create_test_files(test_dir: Path, count: int = 10) -> list[Path]:
60 """Create test files in a temporary directory."""
61 test_dir.mkdir(parents=True, exist_ok=True)
62 files: list[Path] = []
63 for i in range(count):
64 file_path = test_dir / f"test_file_{i}.txt"
65 file_path.write_text(f"Content {i}\n")
66 files.append(file_path)
67 return sorted(files)
68
69
70def test_basic_functionality(results: StressTestResults) -> None:

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected