repo_id
stringclasses
409 values
prefix
large_stringlengths
34
36.3k
target
large_stringlengths
1
498
assertion_type
stringclasses
31 values
difficulty
stringclasses
8 values
test_file
stringlengths
10
121
test_function
stringlengths
1
104
test_class
stringlengths
0
51
lineno
int32
2
11.3k
commit_idx
int32
mohamed-chs/convoviz
from pathlib import Path from convoviz.config import AuthorHeaders from convoviz.io.assets import copy_asset from convoviz.models import ( Message, MessageAuthor, MessageContent, MessageMetadata, Node, ) from convoviz.renderers.markdown import render_node def create_message_with_attachment( ms...
f"assets/{sanitized_name}"
assert
string_literal
tests/test_attachment_renaming.py
test_copy_asset_sanitizes_name
177
null
mohamed-chs/convoviz
from datetime import datetime, timedelta from convoviz.config import AuthorHeaders, ConversationConfig, YAMLConfig from convoviz.models import Conversation, Node from convoviz.renderers import render_conversation from convoviz.renderers.markdown import ( close_code_blocks, render_message_header, render_nod...
yaml
assert
variable
tests/test_renderers.py
test_all_fields_enabled
TestRenderYamlHeader
117
null
mohamed-chs/convoviz
from datetime import datetime from convoviz.config import YAMLConfig from convoviz.models import Conversation from convoviz.models.message import ( Message, MessageAuthor, MessageContent, MessageMetadata, ) from convoviz.renderers.markdown import replace_citations from convoviz.renderers.yaml import re...
["[^1]: [My Source](http://example.com/embedded)"]
assert
collection
tests/test_v3_spec.py
test_replace_embedded_citations
TestCitationParsing
136
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.collectors.api import GitHubAPICollector from src.collectors.archive import GHArchiveCollector from src.collectors.local import LocalGitCollector from src.schema.common import EvidenceSource, IOCType pyt...
40
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_integration.py
test_git_client_get_commit_on_real_repo
TestLocalGitIntegration
433
null
gadievron/raptor
import pytest from ..graph import ( PrimitiveDependencyGraph, create_dependency_graph, ) class TestPrimitiveDependencyGraph: def test_init_with_mitigations(self): """Test initialization with mitigations.""" graph = PrimitiveDependencyGraph(["full_relro", "stack_canary"]) assert "f...
graph.active_mitigations
assert
complex_expr
packages/exploit_feasibility/tests/test_graph.py
test_init_with_mitigations
TestPrimitiveDependencyGraph
23
null
gadievron/raptor
import pytest import time import sys import os import litellm from io import StringIO from unittest.mock import patch, MagicMock from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config imp...
callback_count_2
assert
variable
packages/llm_analysis/tests/test_llm_callbacks.py
test_callback_singleton_pattern
TestCallbackRegistration
52
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.collectors.api import GitHubAPICollector from src.collectors.archive import GHArchiveCollector from src.collectors.local import LocalGitCollector from src.schema.common import EvidenceSource, IOCType pyt...
None
assert
none_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_integration.py
test_fetch_real_commit
TestGitHubAPIIntegration
78
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestGetPrimitiveDefinitions: def test_returns_copy(self): """Test that function returns a fresh copy each time.""" ...
p2.keys()
assert
func_call
packages/exploit_feasibility/tests/test_primitives.py
test_returns_copy
TestGetPrimitiveDefinitions
251
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.clients.gharchive import GHArchiveClient from src.clients.git import GitClient from src.clients.github import GitHubClient from src.clients.wayback import WaybackClient from src.schema.common import Evide...
"my-project"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py
test_accepts_project_id
TestGHArchiveClient
100
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.clients.gharchive import GHArchiveClient from src.clients.git import GitClient from src.clients.github import GitHubClient from src.clients.wayback import WaybackClient from src.schema.common import Evide...
client2
assert
variable
.claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py
test_multiple_github_clients_independent
TestClientIsolation
156
null
gadievron/raptor
import pytest from unittest.mock import patch, MagicMock from ..api import ( find_exploit_paths, format_analysis_summary, check_exploit_viability, get_exploit_constraints, list_primitives, get_primitive_requirements, ) class TestGetExploitConstraints: def test_i386_arch(self): """T...
True
assert
bool_literal
packages/exploit_feasibility/tests/test_api_functions.py
test_i386_arch
TestGetExploitConstraints
222
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.parsers import ( _RowContext, parse_create_event, parse_delete_event, parse_fork_event, parse_gharchive_event, parse_issue_event, parse_member_event, parse_public_event, ...
0
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_parsers.py
test_parses_basic_push
TestParsePushEvent
93
null
gadievron/raptor
import pytest from unittest.mock import patch, MagicMock from packages.exploit_feasibility.profiles import ( TargetContext, TargetProfile, create_local_profile, create_remote_profile, create_web_profile, create_kernel_profile, ) from packages.exploit_feasibility.strategies import ( Analysis...
2.31
assert
numeric_literal
packages/exploit_feasibility/tests/test_strategies.py
test_remote_analysis_uses_provided_glibc
TestAnalyzerWithStrategies
332
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestROPGadgetInfoExtended: def test_all_gadgets_list(self): """Test all_gadgets list storage.""" gadgets = [ {'address...
2
assert
numeric_literal
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_all_gadgets_list
TestROPGadgetInfoExtended
63
null
gadievron/raptor
import pytest import sys import os import litellm from pathlib import Path from pydantic import BaseModel sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config import ModelConfig class TestInstructorCompatibili...
None
assert
none_literal
packages/llm_analysis/tests/test_llm_callbacks_instructor.py
test_instructor_fires_callbacks
TestInstructorCompatibility
61
null
gadievron/raptor
import pytest import time import sys import os import litellm from io import StringIO from unittest.mock import patch, MagicMock from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config imp...
0
assert
numeric_literal
packages/llm_analysis/tests/test_llm_callbacks.py
test_callback_registered_after_init
TestCallbackRegistration
31
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestConfidenceScore: def test_from_reliability_low(self): """Test low reliability score.""" score = ConfidenceS...
"low"
assert
string_literal
packages/exploit_feasibility/tests/test_primitives.py
test_from_reliability_low
TestConfidenceScore
134
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestConfidenceScore: def test_score_clamped_to_valid_range(self): """Test that score is clamped between 0 and 100.""" ...
0
assert
numeric_literal
packages/exploit_feasibility/tests/test_primitives.py
test_score_clamped_to_valid_range
TestConfidenceScore
154
null
gadievron/raptor
import pytest from packages.llm_analysis.llm.client import _is_quota_error, _get_quota_guidance class TestQuotaErrorDetection: def test_detects_http_429_error(self): """Should detect HTTP 429 (Rate Limit) status code.""" error = Exception("HTTP error 429: Too Many Requests") assert _is_qu...
True
assert
bool_literal
packages/llm_analysis/tests/test_quota_detection.py
test_detects_http_429_error
TestQuotaErrorDetection
18
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestGetPrimitiveDefinitions: def test_returns_copy(self): """Test that function returns a fresh copy each time.""" ...
p2
assert
variable
packages/exploit_feasibility/tests/test_primitives.py
test_returns_copy
TestGetPrimitiveDefinitions
254
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.parsers import ( _RowContext, parse_create_event, parse_delete_event, parse_fork_event, parse_gharchive_event, parse_issue_event, parse_member_event, parse_public_event, ...
456
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_parsers.py
test_parses_member_added
TestParseMemberEvent
328
null
gadievron/raptor
import pytest from ..constraints import ( analyze_input_constraints, analyze_bad_byte_impact, assess_libc_fingerprinting, InputConstraintAnalysis, BadByteImpact, LibcFingerprintingPotential, ) class TestInputConstraintAnalysis: def test_strcpy_i386_rop_may_work(self): """Test that ...
4
assert
numeric_literal
packages/exploit_feasibility/tests/test_constraints.py
test_strcpy_i386_rop_may_work
TestInputConstraintAnalysis
43
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestConfidenceScore: def test_from_reliability_high(self): """Test high reliability score.""" score = Confidenc...
"high"
assert
string_literal
packages/exploit_feasibility/tests/test_primitives.py
test_from_reliability_high
TestConfidenceScore
123
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
20
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_iso_format_with_z
TestParseDatetimeLenient
99
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestConfidenceScore: def test_from_reliability_high(self): """Test high reliability score.""" score = Confidenc...
85
assert
numeric_literal
packages/exploit_feasibility/tests/test_primitives.py
test_from_reliability_high
TestConfidenceScore
124
null
gadievron/raptor
from unittest.mock import Mock, patch import pytest from src.collectors.local import LocalGitCollector from src.schema.common import EvidenceSource def mock_git_client(): client = Mock() client.get_commit.return_value = { "sha": "a" * 40, "author_name": "Test Author", "author_email": ...
"b" * 40
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py
test_collect_dangling_commits
63
null
gadievron/raptor
import pytest from unittest.mock import patch, MagicMock from packages.exploit_feasibility.profiles import ( TargetContext, TargetProfile, create_local_profile, create_remote_profile, create_web_profile, create_kernel_profile, ) from packages.exploit_feasibility.strategies import ( Analysis...
{}
assert
collection
packages/exploit_feasibility/tests/test_strategies.py
test_binary_protections_not_applicable
TestWebApplicationStrategy
216
null
gadievron/raptor
import os import json import tempfile import pytest from pathlib import Path from packages.exploitability_validation import ( build_checklist, extract_functions, detect_language, update_checklist_coverage, get_coverage_stats, validate_checklist, validate_findings, create_empty_checklist...
0
assert
numeric_literal
packages/exploitability_validation/tests/test_validation.py
test_get_coverage_stats_empty
TestCoverageTracking
296
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.parsers import ( _RowContext, parse_create_event, parse_delete_event, parse_fork_event, parse_gharchive_event, parse_issue_event, parse_member_event, parse_public_event, ...
"CI"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_parsers.py
test_parses_workflow_requested
TestParseWorkflowRunEvent
477
null
gadievron/raptor
import pytest import sys import os import litellm from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config import ModelConfig class TestMultiProviderCallbacks: def test_anthropic_call...
None
assert
none_literal
packages/llm_analysis/tests/test_llm_callbacks_providers.py
test_anthropic_callback
TestMultiProviderCallbacks
51
null
gadievron/raptor
import os import json import tempfile import pytest from pathlib import Path from packages.exploitability_validation import ( build_checklist, extract_functions, detect_language, update_checklist_coverage, get_coverage_stats, validate_checklist, validate_findings, create_empty_checklist...
6
assert
numeric_literal
packages/exploitability_validation/tests/test_validation.py
test_stage_iteration
TestStageEnum
411
null
gadievron/raptor
import pytest from ..graph import ( PrimitiveDependencyGraph, create_dependency_graph, ) class TestPrimitiveDependencyGraph: def test_is_blocked_with_mitigation(self): """Test is_blocked when mitigation is active.""" graph = PrimitiveDependencyGraph(["glibc_n_disabled"]) blocked, r...
"glibc_n_disabled"
assert
string_literal
packages/exploit_feasibility/tests/test_graph.py
test_is_blocked_with_mitigation
TestPrimitiveDependencyGraph
37
null
gadievron/raptor
import pytest from packages.llm_analysis.llm.client import _is_quota_error, _get_quota_guidance class TestQuotaErrorDetection: def test_non_quota_error_returns_false(self): """Should return False for non-quota errors.""" errors = [ Exception("Connection timeout"), Exception...
False
assert
bool_literal
packages/llm_analysis/tests/test_quota_detection.py
test_non_quota_error_returns_false
TestQuotaErrorDetection
64
null
gadievron/raptor
import pytest from ..graph import ( PrimitiveDependencyGraph, create_dependency_graph, ) class TestPrimitiveDependencyGraph: def test_get_primitive_info(self): """Test getting primitive info.""" graph = PrimitiveDependencyGraph() info = graph.get_primitive_info("libc_leak") ...
"libc_leak"
assert
string_literal
packages/exploit_feasibility/tests/test_graph.py
test_get_primitive_info
TestPrimitiveDependencyGraph
96
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestConfidenceScore: def test_from_reliability_medium(self): """Test medium reliability score.""" score = Confi...
"medium"
assert
string_literal
packages/exploit_feasibility/tests/test_primitives.py
test_from_reliability_medium
TestConfidenceScore
129
null
gadievron/raptor
from unittest.mock import Mock, patch import pytest from src.collectors.local import LocalGitCollector from src.schema.common import EvidenceSource def mock_git_client(): client = Mock() client.get_commit.return_value = { "sha": "a" * 40, "author_name": "Test Author", "author_email": ...
EvidenceSource.GIT
assert
complex_expr
.claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py
test_collect_commit
40
null
gadievron/raptor
import json import os import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock from ..api import ( save_exploit_context, load_exploit_context, print_exploit_context, ) class TestSaveExploitContext: def mock_analysis_result(self): """Mock result from an...
ctx
assert
variable
packages/exploit_feasibility/tests/test_api_persistence.py
test_save_contains_required_fields
TestSaveExploitContext
94
null
gadievron/raptor
import pytest from unittest.mock import patch, MagicMock from ..api import ( find_exploit_paths, format_analysis_summary, check_exploit_viability, get_exploit_constraints, list_primitives, get_primitive_requirements, ) class TestGetExploitConstraints: def test_x86_64_arch(self): ""...
6
assert
numeric_literal
packages/exploit_feasibility/tests/test_api_functions.py
test_x86_64_arch
TestGetExploitConstraints
214
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.parsers import ( _RowContext, parse_create_event, parse_delete_event, parse_fork_event, parse_gharchive_event, parse_issue_event, parse_member_event, parse_public_event, ...
"fork"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_parsers.py
test_parses_fork_event
TestParseForkEvent
553
null
gadievron/raptor
import pytest import sys import os import logging from io import StringIO from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config import ModelConfig, LLMConfig class TestOllamaWarning: ...
0
assert
numeric_literal
packages/llm_analysis/tests/test_ollama_warning.py
test_no_warning_for_cloud_providers
TestOllamaWarning
102
null
gadievron/raptor
import os import subprocess import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock def find_any_elf_binary(): """Find any ELF binary on the system for testing.""" # Try common system binaries that should exist candidates = [ "/bin/ls", "/bin/cat", ...
True
assert
bool_literal
packages/exploit_feasibility/tests/test_integration.py
test_write_target_instantiates
TestDataclassDefaultsValid
260
null
gadievron/raptor
import pytest from ..techniques import ( TechniqueRequirements, get_technique_requirements, get_technique, get_techniques_for_goal, get_viable_techniques, get_missing_primitives, ) class TestGetTechnique: def test_existing_technique(self): """Test getting an existing technique.""" ...
None
assert
none_literal
packages/exploit_feasibility/tests/test_techniques.py
test_existing_technique
TestGetTechnique
74
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestConfidenceScore: def test_score_clamped_to_valid_range(self): """Test that score is clamped between 0 and 100.""" ...
100
assert
numeric_literal
packages/exploit_feasibility/tests/test_primitives.py
test_score_clamped_to_valid_range
TestConfidenceScore
155
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestPayloadConstraintsExtended: def test_encoding_suggestions_default(self): """Test encoding_suggestions defaults to empty list.""" ...
[]
assert
collection
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_encoding_suggestions_default
TestPayloadConstraintsExtended
171
null
gadievron/raptor
import os import subprocess import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock def find_any_elf_binary(): """Find any ELF binary on the system for testing.""" # Try common system binaries that should exist candidates = [ "/bin/ls", "/bin/cat", ...
pc
assert
variable
packages/exploit_feasibility/tests/test_integration.py
test_payload_constraints_serialized_correctly
TestAnalyzeBinaryIntegration
152
null
gadievron/raptor
import json import os import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock from ..api import ( save_exploit_context, load_exploit_context, print_exploit_context, ) class TestSaveExploitContext: def mock_analysis_result(self): """Mock result from an...
0x50d70
assert
complex_expr
packages/exploit_feasibility/tests/test_api_persistence.py
test_save_includes_libc_offsets
TestSaveExploitContext
113
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
12
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_hash_length
TestGenerateEvidenceId
55
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestPayloadConstraintsExtended: def test_max_embeddable_addresses_default(self): """Test max_embeddable_addresses defaults to 0.""" ...
0
assert
numeric_literal
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_max_embeddable_addresses_default
TestPayloadConstraintsExtended
156
null
gadievron/raptor
import pytest from ..graph import ( PrimitiveDependencyGraph, create_dependency_graph, ) class TestPrimitiveDependencyGraph: def test_init_empty(self): """Test initialization with no mitigations.""" graph = PrimitiveDependencyGraph() assert len(graph.active_mitigations) ==
0
assert
numeric_literal
packages/exploit_feasibility/tests/test_graph.py
test_init_empty
TestPrimitiveDependencyGraph
17
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestROPGadgetInfoExtended: def test_extended_gadgets_default_to_none(self): """Test that extended gadget fields default to None.""" ...
None
assert
none_literal
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_extended_gadgets_default_to_none
TestROPGadgetInfoExtended
21
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.parsers import ( _RowContext, parse_create_event, parse_delete_event, parse_fork_event, parse_gharchive_event, parse_issue_event, parse_member_event, parse_public_event, ...
"added"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_parsers.py
test_parses_member_added
TestParseMemberEvent
326
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.clients.gharchive import GHArchiveClient from src.clients.git import GitClient from src.clients.github import GitHubClient from src.clients.wayback import WaybackClient from src.schema.common import Evide...
"https://api.github.com"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py
test_base_url
TestGitHubClient
38
null
gadievron/raptor
import pytest import time import sys import os import litellm from io import StringIO from unittest.mock import patch, MagicMock from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config imp...
None
assert
none_literal
packages/llm_analysis/tests/test_llm_callbacks.py
test_success_event_logs_correctly
TestCallbackSuccessEvent
84
null
gadievron/raptor
import pytest from ..graph import ( PrimitiveDependencyGraph, create_dependency_graph, ) class TestPrimitiveDependencyGraph: def test_find_paths_to_goal_basic(self): """Test finding paths to code execution.""" graph = PrimitiveDependencyGraph() paths = graph.find_paths_to_goal("for...
"code_execution"
assert
string_literal
packages/exploit_feasibility/tests/test_graph.py
test_find_paths_to_goal_basic
TestPrimitiveDependencyGraph
55
null
gadievron/raptor
import os import json import tempfile import pytest from pathlib import Path from packages.exploitability_validation import ( build_checklist, extract_functions, detect_language, update_checklist_coverage, get_coverage_stats, validate_checklist, validate_findings, create_empty_checklist...
1
assert
numeric_literal
packages/exploitability_validation/tests/test_validation.py
test_generic_extractor
TestFunctionExtraction
170
null
gadievron/raptor
import pytest from ..graph import ( PrimitiveDependencyGraph, create_dependency_graph, ) class TestPrimitiveDependencyGraph: def test_find_paths_to_goal_basic(self): """Test finding paths to code execution.""" graph = PrimitiveDependencyGraph() paths = graph.find_paths_to_goal("for...
path.steps
assert
complex_expr
packages/exploit_feasibility/tests/test_graph.py
test_find_paths_to_goal_basic
TestPrimitiveDependencyGraph
56
null
gadievron/raptor
import pytest from ..context import ( ExploitationConstraints, PayloadConstraints, LibcInfo, ROPGadgetInfo, ELFStructure, AddressSpaceInfo, ) class TestExploitationConstraints: def test_x86_64_defaults(self): """Test x86_64 architecture defaults.""" constraints = Exploitati...
6
assert
numeric_literal
packages/exploit_feasibility/tests/test_context.py
test_x86_64_defaults
TestExploitationConstraints
22
null
gadievron/raptor
import json import sys import tempfile from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src import EvidenceStore, EvidenceSource, load_evidence_from_json class TestEvidenceStoreBasics: def test_create_empty_store(self): ...
0
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_store.py
test_create_empty_store
TestEvidenceStoreBasics
33
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
dt
assert
variable
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_datetime_passthrough
TestParseDatetimeLenient
91
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
2025
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_iso_format_with_timezone
TestParseDatetimeLenient
106
null
gadievron/raptor
import pytest from unittest.mock import patch, MagicMock from packages.exploit_feasibility.profiles import ( TargetContext, TargetProfile, create_local_profile, create_remote_profile, create_web_profile, create_kernel_profile, ) from packages.exploit_feasibility.strategies import ( Analysis...
None
assert
none_literal
packages/exploit_feasibility/tests/test_strategies.py
test_get_glibc_version_unknown
TestRemoteBinaryStrategy
139
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.parsers import ( _RowContext, parse_create_event, parse_delete_event, parse_fork_event, parse_gharchive_event, parse_issue_event, parse_member_event, parse_public_event, ...
"owner"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_parsers.py
test_parses_member_added
TestParseMemberEvent
329
null
gadievron/raptor
import pytest from ..techniques import ( TechniqueRequirements, get_technique_requirements, get_technique, get_techniques_for_goal, get_viable_techniques, get_missing_primitives, ) class TestGetViableTechniques: def test_no_mitigations(self): """Test with no blocking mitigations.""...
tech_names
assert
variable
packages/exploit_feasibility/tests/test_techniques.py
test_no_mitigations
TestGetViableTechniques
117
null
gadievron/raptor
import pytest from ..techniques import ( TechniqueRequirements, get_technique_requirements, get_technique, get_techniques_for_goal, get_viable_techniques, get_missing_primitives, ) class TestGetTechniquesForGoal: def test_code_execution_goal(self): """Test finding techniques that p...
tech.provides
assert
complex_expr
packages/exploit_feasibility/tests/test_techniques.py
test_code_execution_goal
TestGetTechniquesForGoal
91
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestPayloadConstraintsExtended: def test_allowed_charset_default(self): """Test allowed_charset defaults to empty string.""" const...
""
assert
string_literal
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_allowed_charset_default
TestPayloadConstraintsExtended
161
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestROPGadgetInfoExtended: def test_charset_filtering_fields(self): """Test charset filtering count fields.""" info = ROPGadgetInf...
5
assert
numeric_literal
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_charset_filtering_fields
TestROPGadgetInfoExtended
54
null
gadievron/raptor
import pytest from ..constraints import ( analyze_input_constraints, analyze_bad_byte_impact, assess_libc_fingerprinting, InputConstraintAnalysis, BadByteImpact, LibcFingerprintingPotential, ) class TestBadByteImpact: def test_partial_overwrite_technique(self): """Test partial over...
2
assert
numeric_literal
packages/exploit_feasibility/tests/test_constraints.py
test_partial_overwrite_technique
TestBadByteImpact
169
null
gadievron/raptor
import pytest from ..techniques import ( TechniqueRequirements, get_technique_requirements, get_technique, get_techniques_for_goal, get_viable_techniques, get_missing_primitives, ) class TestGetTechniqueRequirements: def test_returns_copy(self): """Test that function returns a fres...
t2
assert
variable
packages/exploit_feasibility/tests/test_techniques.py
test_returns_copy
TestGetTechniqueRequirements
65
null
gadievron/raptor
import pytest from unittest.mock import patch, MagicMock from packages.exploit_feasibility.profiles import ( TargetContext, TargetProfile, create_local_profile, create_remote_profile, create_web_profile, create_kernel_profile, ) from packages.exploit_feasibility.strategies import ( Analysis...
0
assert
numeric_literal
packages/exploit_feasibility/tests/test_strategies.py
test_context_warnings_known_glibc
TestRemoteBinaryStrategy
179
null
gadievron/raptor
import pytest from ..techniques import ( TechniqueRequirements, get_technique_requirements, get_technique, get_techniques_for_goal, get_viable_techniques, get_missing_primitives, ) class TestGetMissingPrimitives: def test_nonexistent_technique(self): """Test with non-existent techn...
0
assert
numeric_literal
packages/exploit_feasibility/tests/test_techniques.py
test_nonexistent_technique
TestGetMissingPrimitives
183
null
gadievron/raptor
from unittest.mock import Mock, patch import pytest from src.collectors.local import LocalGitCollector from src.schema.common import EvidenceSource def mock_git_client(): client = Mock() client.get_commit.return_value = { "sha": "a" * 40, "author_name": "Test Author", "author_email": ...
1
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py
test_collect_commit
41
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestELFStructureExtended: def test_plt_stub_size_custom(self): """Test setting custom plt_stub_size.""" struct = ELFStructure(plt_...
32
assert
numeric_literal
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_plt_stub_size_custom
TestELFStructureExtended
100
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.clients.gharchive import GHArchiveClient from src.clients.git import GitClient from src.clients.github import GitHubClient from src.clients.wayback import WaybackClient from src.schema.common import Evide...
EvidenceSource.GITHUB
assert
complex_expr
.claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py
test_source_is_github
TestGitHubClient
34
null
gadievron/raptor
import pytest import time import sys import os import litellm from io import StringIO from unittest.mock import patch, MagicMock from pathlib import Path sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config imp...
"RaptorLLMLogger"
assert
string_literal
packages/llm_analysis/tests/test_llm_callbacks.py
test_callback_registered_after_init
TestCallbackRegistration
35
null
gadievron/raptor
import json import sys import tempfile from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src import EvidenceStore, EvidenceSource, load_evidence_from_json class TestEvidenceStoreBasics: def test_clear_store(self, sample_pus...
2
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_store.py
test_clear_store
TestEvidenceStoreBasics
77
null
gadievron/raptor
import os import subprocess import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock def find_any_elf_binary(): """Find any ELF binary on the system for testing.""" # Try common system binaries that should exist candidates = [ "/bin/ls", "/bin/cat", ...
1
assert
numeric_literal
packages/exploit_feasibility/tests/test_integration.py
test_analysis_runs_once_not_multiple_times
TestAnalysisCachingOptimization
183
null
gadievron/raptor
import pytest from packages.llm_analysis.llm.client import _is_quota_error, _get_quota_guidance class TestQuotaGuidance: def test_gemini_guidance_by_provider(self): """Should return Gemini-specific detection message when provider is 'gemini'.""" guidance = _get_quota_guidance("gemini-2.5-pro", "ge...
guidance
assert
variable
packages/llm_analysis/tests/test_quota_detection.py
test_gemini_guidance_by_provider
TestQuotaGuidance
74
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestExploitPath: def test_basic_path(self): """Test basic exploit path creation.""" path = ExploitPath( ...
3
assert
numeric_literal
packages/exploit_feasibility/tests/test_primitives.py
test_basic_path
TestExploitPath
176
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.parsers import ( _RowContext, parse_create_event, parse_delete_event, parse_fork_event, parse_gharchive_event, parse_issue_event, parse_member_event, parse_public_event, ...
"issue"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_parsers.py
test_parses_issue_opened
TestParseIssueEvent
123
null
gadievron/raptor
import pytest from ..graph import ( PrimitiveDependencyGraph, create_dependency_graph, ) class TestPrimitiveDependencyGraph: def test_summary(self): """Test summary output.""" graph = PrimitiveDependencyGraph(["full_relro"]) summary = graph.summary() assert "PRIMITIVE DEPE...
summary
assert
variable
packages/exploit_feasibility/tests/test_graph.py
test_summary
TestPrimitiveDependencyGraph
108
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestExploitPath: def test_compute_confidence(self): """Test confidence computation.""" path = ExploitPath( ...
None
assert
none_literal
packages/exploit_feasibility/tests/test_primitives.py
test_compute_confidence
TestExploitPath
187
null
gadievron/raptor
import pytest from ..context import ( ExploitationConstraints, PayloadConstraints, LibcInfo, ROPGadgetInfo, ELFStructure, AddressSpaceInfo, ) class TestPayloadConstraints: def test_default_empty(self): """Test default empty constraints.""" constraints = PayloadConstraints()...
""
assert
string_literal
packages/exploit_feasibility/tests/test_context.py
test_default_empty
TestPayloadConstraints
94
null
gadievron/raptor
from unittest.mock import Mock, patch import pytest from src.collectors.local import LocalGitCollector from src.schema.common import EvidenceSource def mock_git_client(): client = Mock() client.get_commit.return_value = { "sha": "a" * 40, "author_name": "Test Author", "author_email": ...
"Test Author"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_collectors_local.py
test_collect_commit
37
null
gadievron/raptor
import pytest from unittest.mock import patch, MagicMock from ..api import ( find_exploit_paths, format_analysis_summary, check_exploit_viability, get_exploit_constraints, list_primitives, get_primitive_requirements, ) class TestGetExploitConstraints: def test_with_input_handler(self): ...
0
assert
numeric_literal
packages/exploit_feasibility/tests/test_api_functions.py
test_with_input_handler
TestGetExploitConstraints
229
null
gadievron/raptor
import os import subprocess import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock def find_any_elf_binary(): """Find any ELF binary on the system for testing.""" # Try common system binaries that should exist candidates = [ "/bin/ls", "/bin/cat", ...
""
assert
string_literal
packages/exploit_feasibility/tests/test_integration.py
test_payload_constraints_instantiates
TestDataclassDefaultsValid
246
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
13
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_iso_format_with_z
TestParseDatetimeLenient
98
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
7
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_iso_format_with_z
TestParseDatetimeLenient
97
null
gadievron/raptor
import os import subprocess import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock def find_any_elf_binary(): """Find any ELF binary on the system for testing.""" # Try common system binaries that should exist candidates = [ "/bin/ls", "/bin/cat", ...
None
assert
none_literal
packages/exploit_feasibility/tests/test_integration.py
test_address_space_info_instantiates
TestDataclassDefaultsValid
238
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.clients.gharchive import GHArchiveClient from src.clients.git import GitClient from src.clients.github import GitHubClient from src.clients.wayback import WaybackClient from src.schema.common import Evide...
WaybackClient.CDX_URL
assert
complex_expr
.claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py
test_cdx_url
TestWaybackClient
75
null
gadievron/raptor
import pytest from ..context import ( ROPGadgetInfo, ELFStructure, AddressSpaceInfo, PayloadConstraints, ExploitPrimitive, WriteTarget, ) class TestPayloadConstraintsExtended: def test_bad_byte_reasons_default(self): """Test bad_byte_reasons defaults to empty dict.""" const...
{}
assert
collection
packages/exploit_feasibility/tests/test_extended_dataclasses.py
test_bad_byte_reasons_default
TestPayloadConstraintsExtended
142
null
gadievron/raptor
import os import subprocess import tempfile import pytest from pathlib import Path from unittest.mock import patch, MagicMock def find_any_elf_binary(): """Find any ELF binary on the system for testing.""" # Try common system binaries that should exist candidates = [ "/bin/ls", "/bin/cat", ...
0
assert
numeric_literal
packages/exploit_feasibility/tests/test_integration.py
test_format_real_analysis_result
TestFormatAnalysisSummaryIntegration
200
null
gadievron/raptor
import pytest from ..primitives import ( Primitive, PrimitiveID, PrimitiveType, MitigationID, ConfidenceScore, ExploitPath, get_primitive_definitions, ) class TestConfidenceScore: def test_summary_format(self): """Test summary output format.""" score = ConfidenceScore.f...
summary
assert
variable
packages/exploit_feasibility/tests/test_primitives.py
test_summary_format
TestConfidenceScore
161
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.clients.gharchive import GHArchiveClient from src.clients.git import GitClient from src.clients.github import GitHubClient from src.clients.wayback import WaybackClient from src.schema.common import Evide...
EvidenceSource.GHARCHIVE
assert
complex_expr
.claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py
test_source_is_gharchive
TestGHArchiveClient
95
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.clients.gharchive import GHArchiveClient from src.clients.git import GitClient from src.clients.github import GitHubClient from src.clients.wayback import WaybackClient from src.schema.common import Evide...
"project1"
assert
string_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_clients.py
test_multiple_gharchive_clients_independent
TestClientIsolation
165
null
gadievron/raptor
import pytest from ..constraints import ( analyze_input_constraints, analyze_bad_byte_impact, assess_libc_fingerprinting, InputConstraintAnalysis, BadByteImpact, LibcFingerprintingPotential, ) class TestInputConstraintAnalysis: def test_to_dict_complete(self): """Test that to_dict(...
d
assert
variable
packages/exploit_feasibility/tests/test_constraints.py
test_to_dict_complete
TestInputConstraintAnalysis
104
null
gadievron/raptor
import sys from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.collectors.api import GitHubAPICollector from src.collectors.archive import GHArchiveCollector from src.collectors.local import LocalGitCollector from src.schema.common import EvidenceSource, IOCType pyt...
[]
assert
collection
.claude/skills/oss-forensics/github-evidence-kit/tests/test_integration.py
test_gharchive_query_returns_empty_for_nonexistent_repo
TestGHArchiveIntegration
372
null
gadievron/raptor
import pytest from ..techniques import ( TechniqueRequirements, get_technique_requirements, get_technique, get_techniques_for_goal, get_viable_techniques, get_missing_primitives, ) class TestGetTechniqueRequirements: def test_contains_expected_techniques(self): """Test that expecte...
techniques
assert
variable
packages/exploit_feasibility/tests/test_techniques.py
test_contains_expected_techniques
TestGetTechniqueRequirements
52
null
gadievron/raptor
import pytest import sys import os import litellm from pathlib import Path from pydantic import BaseModel sys.path.insert(0, str(Path(__file__).parent.parent.parent.parent)) from packages.llm_analysis.llm.client import LLMClient from packages.llm_analysis.llm.config import ModelConfig class TestInstructorCompatibili...
result_dict
assert
variable
packages/llm_analysis/tests/test_llm_callbacks_instructor.py
test_instructor_fires_callbacks
TestInstructorCompatibility
62
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
4
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_iso_format_with_z
TestParseDatetimeLenient
101
null
gadievron/raptor
import sys from datetime import datetime, timezone from pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).parent.parent)) from src.helpers import ( generate_evidence_id, make_actor, make_repo, make_repo_from_full_name, parse_datetime_lenient, parse_datetime_strict, ) cl...
5
assert
numeric_literal
.claude/skills/oss-forensics/github-evidence-kit/tests/test_helpers.py
test_none_returns_now
TestParseDatetimeLenient
85
null