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

Function test_javascript_lint_cache

ci/test_all_lint_caches_stress.py:165–191  ·  view source on GitHub ↗

Test JavaScript lint cache.

(test: CacheLintStressTest)

Source from the content-addressed store, hash-verified

163
164
165def test_javascript_lint_cache(test: CacheLintStressTest) -> None:
166 """Test JavaScript lint cache."""
167 print("\n📋 TEST 2: JavaScript Lint Cache")
168 print("-" * 70)
169
170 # Initial check
171 needs_update, output = test.run_cache_check("js")
172 if needs_update or "not found" in output.lower() or "no files" in output.lower():
173 # JS files might not exist, which is okay
174 test.pass_test("JavaScript lint cache check completes (may be empty)")
175 else:
176 test.pass_test("JavaScript lint cache check completes")
177
178 # Mark as successful
179 success, output = test.run_cache_mark("js")
180 if success:
181 test.pass_test("JavaScript lint marked successful")
182 else:
183 test.fail_test("Mark JS lint success", output)
184 return
185
186 # Second check
187 needs_update, output = test.run_cache_check("js")
188 if not needs_update:
189 test.pass_test("JavaScript lint cache hit on second check")
190 else:
191 test.pass_test("JavaScript lint check (empty directory is okay)")
192
193
194def test_cpp_lint_cache_rapid_changes(test: CacheLintStressTest) -> None:

Callers 1

mainFunction · 0.85

Calls 5

run_cache_checkMethod · 0.80
run_cache_markMethod · 0.80
printFunction · 0.50
pass_testMethod · 0.45
fail_testMethod · 0.45

Tested by

no test coverage detected