← Về thư mục
scripts/test_cross_model_verification_guards.py
- _require_jq · function · L44-L49 — def _require_jq() -> str
- _run_jq_raw · function · L52-L62 — def _run_jq_raw(filter_path: Path, json_text: str, *, raw: bool = False, exit_test: bool = False)
- _run_jq · function · L65-L67 — def _run_jq(filter_path: Path, payload: dict, *, raw: bool = False, exit_test: bool = False)
- test_jq_version_diagnostic · function · L70-L75 — def test_jq_version_diagnostic()
- test_all_canonical_filters_exist_and_parse · function · L78-L89 — def test_all_canonical_filters_exist_and_parse()
- test_openai_grounded_passes_guard · function · L135-L137 — def test_openai_grounded_passes_guard()
- test_openai_from_memory_fails_guard · function · L140-L142 — def test_openai_from_memory_fails_guard()
- test_openai_grounded_extracts_text_and_sources · function · L145-L149 — def test_openai_grounded_extracts_text_and_sources()
- test_openai_search_without_citation_yields_blank_sources · function · L152-L155 — def test_openai_search_without_citation_yields_blank_sources()
- test_gemini_grounded_passes_guard · function · L235-L237 — def test_gemini_grounded_passes_guard()
- test_gemini_search_without_support_fails_guard · function · L240-L242 — def test_gemini_search_without_support_fails_guard()
- _gemini_supports · function · L250-L262 — def _gemini_supports(support_objs, chunks=None)
- test_gemini_guard_fails_closed_without_valid_supported_index · function · L276-L278 — def test_gemini_guard_fails_closed_without_valid_supported_index(support_objs)
- test_gemini_guard_derives_from_extractor · function · L323-L328 — def test_gemini_guard_derives_from_extractor(candidates, should_pass)
- test_gemini_guard_pass_implies_sources_nonblank · function · L331-L348 — def test_gemini_guard_pass_implies_sources_nonblank()
- test_gemini_sources_only_from_supported_chunks · function · L351-L355 — def test_gemini_sources_only_from_supported_chunks()
- test_gemini_negative_index_fails_closed · function · L358-L366 — def test_gemini_negative_index_fails_closed()
- test_gemini_string_index_fails_closed · function · L369-L373 — def test_gemini_string_index_fails_closed()
- test_gemini_out_of_range_index_fails_closed · function · L376-L380 — def test_gemini_out_of_range_index_fails_closed()
- test_gemini_guard_fails_closed_on_non_array_supports · function · L436-L439 — def test_gemini_guard_fails_closed_on_non_array_supports()
- test_gemini_guard_fails_closed_on_non_array_queries · function · L442-L445 — def test_gemini_guard_fails_closed_on_non_array_queries()
- test_gemini_sources_fails_closed_on_non_array_chunks · function · L448-L452 — def test_gemini_sources_fails_closed_on_non_array_chunks()
- test_gemini_sources_fails_closed_on_non_string_uri · function · L455-L459 — def test_gemini_sources_fails_closed_on_non_string_uri()
- test_openai_sources_fails_closed_on_non_string_url · function · L495-L499 — def test_openai_sources_fails_closed_on_non_string_url()
- test_openai_sources_fails_closed_on_object_url · function · L502-L506 — def test_openai_sources_fails_closed_on_object_url()
- test_gemini_guard_fails_closed_on_non_array_candidates · function · L543-L546 — def test_gemini_guard_fails_closed_on_non_array_candidates()
- test_gemini_sources_fails_closed_on_non_array_candidates · function · L549-L553 — def test_gemini_sources_fails_closed_on_non_array_candidates()
- test_openai_guard_fails_closed_on_non_array_output · function · L556-L559 — def test_openai_guard_fails_closed_on_non_array_output()
- test_openai_sources_fails_closed_on_non_array_output · function · L562-L566 — def test_openai_sources_fails_closed_on_non_array_output()
- test_openai_sources_fails_closed_on_non_array_content · function · L605-L609 — def test_openai_sources_fails_closed_on_non_array_content()
- test_openai_sources_fails_closed_on_non_array_annotations · function · L612-L616 — def test_openai_sources_fails_closed_on_non_array_annotations()
- test_openai_text_fails_closed_on_non_array_content · function · L619-L623 — def test_openai_text_fails_closed_on_non_array_content()
- test_openai_text_fails_closed_on_non_string_text · function · L626-L636 — def test_openai_text_fails_closed_on_non_string_text()
- test_openai_filters_skip_non_object_array_elements · function · L654-L661 — def test_openai_filters_skip_non_object_array_elements(filter_path, payload)
- test_gemini_guard_fails_closed_on_non_object_dereference · function · L698-L701 — def test_gemini_guard_fails_closed_on_non_object_dereference(payload)
- test_gemini_sources_fails_closed_on_non_object_dereference · function · L709-L713 — def test_gemini_sources_fails_closed_on_non_object_dereference(payload)
- test_gemini_filters_fail_closed_on_non_object_root · function · L726-L732 — def test_gemini_filters_fail_closed_on_non_object_root(root)
- test_mutation_accept_all_guard_would_be_caught · function · L740-L767 — def test_mutation_accept_all_guard_would_be_caught()
- test_mutation_naive_sources_would_leak_negative_index · function · L770-L792 — def test_mutation_naive_sources_would_leak_negative_index()