MCPcopy Create free account
hub / github.com/AztecProtocol/aztec-packages / get_bb_binary_path

Function get_bb_binary_path

barretenberg/rust/tests/src/utils.rs:58–65  ·  view source on GitHub ↗

Get path to BB binary for testing

()

Source from the content-addressed store, hash-verified

56
57/// Get path to BB binary for testing
58pub fn get_bb_binary_path() -> String {
59 std::env::var("BB_BINARY_PATH")
60 .unwrap_or_else(|_| {
61 // Default path relative to the repository root
62 // From rust/tests, need to go up two levels to barretenberg/
63 "../../cpp/build/bin/bb".to_string()
64 })
65}
66
67/// Check if BB binary exists at the expected path
68pub fn bb_binary_exists() -> bool {

Callers 15

test_blake2sFunction · 0.85
test_blake2s_to_fieldFunction · 0.85
bb_binary_existsFunction · 0.85
bb_supports_msgpackFunction · 0.85
test_bb_binary_detectionFunction · 0.85
test_poseidon2_hashFunction · 0.85
test_poseidon2_hash_perfFunction · 0.85
test_pedersen_hashFunction · 0.85
test_pedersen_commitFunction · 0.85
test_pedersen_hash_perfFunction · 0.85

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected