Gradle Test Run :test

AiResultCacheTest

summary

12

tests

0

failures

0

skipped

0.713s

duration

100%

successful

Child Name Tests Failures Skipped Duration Success rate
empty cache is not active and always returns misses empty_isNotActiveAndAlwaysMisses() 1 0 0 0.001s 100%
legacy CSV entry serves classification by content hash but never satisfies a credential query legacyCsvEntry_servesClassificationNotVerdicts(Path) 1 0 0 0.003s 100%
CSV with content_hash and AI columns produces a hit for matching hash load_csvWithContentHashAndAiColumns_hitOnMatchingHash(Path) 1 0 0 0.005s 100%
CSV without AI columns (no -ai flag on producing run) produces an inactive cache load_csvWithoutAiColumns_producesInactiveCache(Path) 1 0 0 0.004s 100%
CSV without content_hash column produces an inactive cache (all misses) load_csvWithoutContentHashColumn_producesInactiveCache(Path) 1 0 0 0.007s 100%
method suggestion fields are restored correctly from CSV load_methodSuggestionFieldsRestoredCorrectly(Path) 1 0 0 0.003s 100%
multiple methods sharing the same content_hash are grouped into one AiClassSuggestion load_multipleMethodsSameHash_groupedIntoOneSuggestion(Path) 1 0 0 0.005s 100%
non-security method (ai_security_relevant=false) is cached and restores as non-security load_nonSecurityMethod_cachedAndRestoredAsNonSecurity(Path) 1 0 0 0.003s 100%
lookup with null hash returns empty and increments miss counter lookup_nullHash_returnsMissAndIncrementsMisses(Path) 1 0 0 0.005s 100%
lookup returns empty for a hash not present in the cache lookup_unknownHash_returnsMiss(Path) 1 0 0 0.380s 100%
unified cache round-trips classifications and credential verdicts when the signature matches unifiedCache_roundTripsClassificationAndVerdicts(Path) 1 0 0 0.011s 100%
a different prompt signature misses both classification and verdicts unifiedCache_signatureMismatchMissesBoth(Path) 1 0 0 0.241s 100%