MCPcopy Create free account
hub / github.com/argumentcomputer/ix / test_claim_first_byte

Function test_claim_first_byte

crates/ixon/src/proof.rs:1796–1822  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1794 typ: None,
1795 value: None,
1796 };
1797
1798 let cases: Vec<(Claim, u64)> = vec![
1799 (
1800 Claim::Eval { input: a.clone(), output: b.clone(), assumptions: None },
1801 VARIANT_EVAL_CLAIM,
1802 ),
1803 (
1804 Claim::Check { const_addr: a.clone(), assumptions: None },
1805 VARIANT_CHECK_CLAIM,
1806 ),
1807 (
1808 Claim::CheckEnv { root: a.clone(), assumptions: None },
1809 VARIANT_CHECK_ENV_CLAIM,
1810 ),
1811 (
1812 Claim::Reveal { comm: a.clone(), info: reveal_info },
1813 VARIANT_REVEAL_CLAIM,
1814 ),
1815 (Claim::Contains { tree: a, const_addr: b }, VARIANT_CONTAINS_CLAIM),
1816 ];
1817
1818 for (claim, expected_size) in cases {
1819 let tag = claim_tag(&claim);
1820 assert_eq!(tag.flag, FLAG_CLAIM, "claim must use flag 0xE");
1821 assert_eq!(tag.value, expected_size);
1822 }
1823 }
1824
1825 #[test]

Callers

nothing calls this directly

Calls 1

claim_bytesFunction · 0.85

Tested by

no test coverage detected