Gradle Test Run :test

SarifEmitterTest

summary

22

tests

0

failures

0

skipped

0.242s

duration

100%

successful

Child Name Tests Failures Skipped Duration Success rate
contentHash is absent from properties when null is passed contentHash_absentFromPropertiesWhenNull() 1 0 0 0.010s 100%
contentHash is present in properties when a hash value is provided contentHash_presentInPropertiesWhenProvided() 1 0 0 0.013s 100%
aiConfidence is absent in properties when confidence is disabled flush_aiConfidenceAbsent_whenConfidenceDisabled() 1 0 0 0.009s 100%
aiConfidence is present in properties when confidence is enabled flush_aiConfidencePresent_whenConfidenceEnabled() 1 0 0 0.011s 100%
artifactLocation uri is derived from FQCN with dots replaced by slashes and .java appended flush_artifactUriDerivedFromFqcn() 1 0 0 0.009s 100%
flush emits an empty results array when no records have been added flush_emitsEmptyResultsArrayWhenNoRecords() 1 0 0 0.008s 100%
flush emits a valid SARIF 2.1.0 document with version and schema flush_emitsValidSarif210Document() 1 0 0 0.011s 100%
logicalLocation contains fully qualified method name and kind 'member' flush_logicalLocationContainsFqmn() 1 0 0 0.009s 100%
all three records are emitted when three methods are recorded flush_multipleResultsAllEmitted() 1 0 0 0.010s 100%
non-security method gets level 'none' and ruleId 'test-method' flush_nonSecurityMethodGetsLevelNoneAndRuleTestMethod() 1 0 0 0.011s 100%
non-security method message text is fully qualified method name flush_nonSecurityMethodMessageIsFullyQualifiedMethodName() 1 0 0 0.011s 100%
properties bag contains AI fields when AI is enabled and suggestion is present flush_propertiesContainAiFields_whenAiEnabled() 1 0 0 0.009s 100%
properties bag contains loc with correct value flush_propertiesContainLoc() 1 0 0 0.010s 100%
properties bag contains sourceTags joined by semicolon when tags are present flush_propertiesContainSourceTags_whenPresent() 1 0 0 0.012s 100%
region is absent when beginLine is zero flush_regionAbsent_whenBeginLineZero() 1 0 0 0.011s 100%
region startLine is present when beginLine is positive flush_regionStartLinePresent_whenBeginLinePositive() 1 0 0 0.009s 100%
identical security rules are deduplicated across multiple results flush_rulesAreDeduplicatedAcrossResults() 1 0 0 0.010s 100%
security method displayName from suggestion is used as message text flush_securityMethodDisplayNameUsedAsMessage() 1 0 0 0.010s 100%
security method with 'auth' tag gets ruleId 'security/auth' and level 'note' flush_securityMethodWithAuthTagGetsRuleSecurityAuth() 1 0 0 0.013s 100%
security method with only 'security' tag gets ruleId 'security-test' flush_securityMethodWithOnlySecurityTagGetsRuleSecurityTest() 1 0 0 0.012s 100%
properties bag sourceTags is absent when tags list is empty flush_sourceTagsAbsent_whenEmpty() 1 0 0 0.010s 100%
flush tool driver has name 'MethodAtlas' flush_toolDriverHasCorrectName() 1 0 0 0.006s 100%