Skip to content

Commit 1a7b41f

Browse files
committed
tests: bring backtest case with multiple evidence identities
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 9382ad4 commit 1a7b41f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/_data/models.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,19 @@ def get_component_evidence_basic(tools: Iterable[Component]) -> ComponentEvidenc
782782
"""
783783
return ComponentEvidence(
784784
identity=[
785+
Identity(
786+
field=IdentityField.NAME,
787+
confidence=Decimal('0.9'),
788+
concluded_value='example-component',
789+
methods=[
790+
Method(
791+
technique=AnalysisTechnique.SOURCE_CODE_ANALYSIS,
792+
confidence=Decimal('0.8'),
793+
value='analysis-tool'
794+
),
795+
],
796+
tools=(tool.bom_ref for tool in tools)
797+
),
785798
Identity(
786799
field=IdentityField.HASH,
787800
confidence=Decimal('0.1'),

0 commit comments

Comments
 (0)