Home
last modified time | relevance | path

Searched refs:value2 (Results 1 – 2 of 2) sorted by relevance

/tonic/tonic/src/metadata/
H A Dvalue.rs906 let value2 = Amv::from_static("abc"); in test_ascii_value_hash() localVariable
907 assert_eq!(value1, value2); in test_ascii_value_hash()
908 assert_eq!(hash(value1), hash(value2)); in test_ascii_value_hash()
911 let value2 = Amv::from_static("xyz"); in test_ascii_value_hash() localVariable
913 assert_ne!(value1, value2); in test_ascii_value_hash()
914 assert_ne!(hash(value1), hash(value2)); in test_ascii_value_hash()
929 let value2 = Bmv::from_bytes(b"abc"); in test_valid_binary_value_hash() localVariable
930 assert_eq!(value1, value2); in test_valid_binary_value_hash()
934 let value2 = Bmv::from_bytes(b"xyz"); in test_valid_binary_value_hash() localVariable
935 assert_ne!(value1, value2); in test_valid_binary_value_hash()
[all …]
/tonic/interop/src/
H A Dclient.rs347 let value2 = MetadataValue::from_bytes(&[0xab, 0xab, 0xab]); in custom_metadata() localVariable
357 req_unary.metadata_mut().insert_bin(key2, value2.clone()); in custom_metadata()
362 req_stream.metadata_mut().insert_bin(key2, value2.clone()); in custom_metadata()
376 response.metadata().get_bin(key2) == Some(&value2), in custom_metadata()
397 trailers.get_bin(key2) == Some(&value2), in custom_metadata()