fune/third_party/rust/bytes/tests/test_debug.rs
Andreas Tolfsen fa6c2a6c1a bug 1598286: third_party: vendor Rust dependencies; r=remote-protocol-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D58766

--HG--
rename : third_party/rust/bytes/.cargo-checksum.json => third_party/rust/bytes-0.4.9/.cargo-checksum.json
rename : third_party/rust/bytes/CHANGELOG.md => third_party/rust/bytes-0.4.9/CHANGELOG.md
rename : third_party/rust/bytes/Cargo.toml => third_party/rust/bytes-0.4.9/Cargo.toml
rename : third_party/rust/bytes/README.md => third_party/rust/bytes-0.4.9/README.md
rename : third_party/rust/bytes/benches/bytes.rs => third_party/rust/bytes-0.4.9/benches/bytes.rs
rename : third_party/rust/bytes/ci/before_deploy.ps1 => third_party/rust/bytes-0.4.9/ci/before_deploy.ps1
rename : third_party/rust/bytes/ci/before_deploy.sh => third_party/rust/bytes-0.4.9/ci/before_deploy.sh
rename : third_party/rust/bytes/ci/install.sh => third_party/rust/bytes-0.4.9/ci/install.sh
rename : third_party/rust/bytes/ci/script.sh => third_party/rust/bytes-0.4.9/ci/script.sh
rename : third_party/rust/bytes/ci/tsan => third_party/rust/bytes-0.4.9/ci/tsan
rename : third_party/rust/bytes/src/buf/buf.rs => third_party/rust/bytes-0.4.9/src/buf/buf.rs
rename : third_party/rust/bytes/src/buf/buf_mut.rs => third_party/rust/bytes-0.4.9/src/buf/buf_mut.rs
rename : third_party/rust/bytes/src/buf/chain.rs => third_party/rust/bytes-0.4.9/src/buf/chain.rs
rename : third_party/rust/bytes/src/buf/from_buf.rs => third_party/rust/bytes-0.4.9/src/buf/from_buf.rs
rename : third_party/rust/bytes/src/buf/into_buf.rs => third_party/rust/bytes-0.4.9/src/buf/into_buf.rs
rename : third_party/rust/bytes/src/buf/iter.rs => third_party/rust/bytes-0.4.9/src/buf/iter.rs
rename : third_party/rust/bytes/src/buf/mod.rs => third_party/rust/bytes-0.4.9/src/buf/mod.rs
rename : third_party/rust/bytes/src/buf/reader.rs => third_party/rust/bytes-0.4.9/src/buf/reader.rs
rename : third_party/rust/bytes/src/buf/take.rs => third_party/rust/bytes-0.4.9/src/buf/take.rs
rename : third_party/rust/bytes/src/buf/writer.rs => third_party/rust/bytes-0.4.9/src/buf/writer.rs
rename : third_party/rust/bytes/src/bytes.rs => third_party/rust/bytes-0.4.9/src/bytes.rs
rename : third_party/rust/bytes/src/debug.rs => third_party/rust/bytes-0.4.9/src/debug.rs
rename : third_party/rust/bytes/src/lib.rs => third_party/rust/bytes-0.4.9/src/lib.rs
rename : third_party/rust/bytes/src/serde.rs => third_party/rust/bytes-0.4.9/src/serde.rs
rename : third_party/rust/bytes/tests/test_buf.rs => third_party/rust/bytes-0.4.9/tests/test_buf.rs
rename : third_party/rust/bytes/tests/test_buf_mut.rs => third_party/rust/bytes-0.4.9/tests/test_buf_mut.rs
rename : third_party/rust/bytes/tests/test_bytes.rs => third_party/rust/bytes-0.4.9/tests/test_bytes.rs
rename : third_party/rust/bytes/tests/test_chain.rs => third_party/rust/bytes-0.4.9/tests/test_chain.rs
rename : third_party/rust/bytes/tests/test_debug.rs => third_party/rust/bytes-0.4.9/tests/test_debug.rs
rename : third_party/rust/bytes/tests/test_from_buf.rs => third_party/rust/bytes-0.4.9/tests/test_from_buf.rs
rename : third_party/rust/bytes/tests/test_iter.rs => third_party/rust/bytes-0.4.9/tests/test_iter.rs
rename : third_party/rust/bytes/tests/test_serde.rs => third_party/rust/bytes-0.4.9/tests/test_serde.rs
rename : third_party/rust/bytes/tests/test_take.rs => third_party/rust/bytes-0.4.9/tests/test_take.rs
rename : third_party/rust/bytes/benches/bytes.rs => third_party/rust/bytes/benches/bytes_mut.rs
rename : third_party/rust/bytes/src/buf/buf.rs => third_party/rust/bytes/src/buf/buf_impl.rs
rename : third_party/rust/bytes/src/buf/chain.rs => third_party/rust/bytes/src/buf/ext/chain.rs
rename : third_party/rust/bytes/src/buf/reader.rs => third_party/rust/bytes/src/buf/ext/reader.rs
rename : third_party/rust/bytes/src/buf/take.rs => third_party/rust/bytes/src/buf/ext/take.rs
rename : third_party/rust/bytes/src/buf/writer.rs => third_party/rust/bytes/src/buf/ext/writer.rs
rename : third_party/rust/http/.cargo-checksum.json => third_party/rust/http-0.1.17/.cargo-checksum.json
rename : third_party/rust/http/CHANGELOG.md => third_party/rust/http-0.1.17/CHANGELOG.md
rename : third_party/rust/http/Cargo.toml => third_party/rust/http-0.1.17/Cargo.toml
rename : third_party/rust/http/benches/header_map/basic.rs => third_party/rust/http-0.1.17/benches/header_map/basic.rs
rename : third_party/rust/http/benches/header_map/mod.rs => third_party/rust/http-0.1.17/benches/header_map/mod.rs
rename : third_party/rust/http/benches/header_map/vec_map.rs => third_party/rust/http-0.1.17/benches/header_map/vec_map.rs
rename : third_party/rust/http/benches/header_value.rs => third_party/rust/http-0.1.17/benches/header_value.rs
rename : third_party/rust/http/benches/uri.rs => third_party/rust/http-0.1.17/benches/uri.rs
rename : third_party/rust/http/src/byte_str.rs => third_party/rust/http-0.1.17/src/byte_str.rs
rename : third_party/rust/http/src/convert.rs => third_party/rust/http-0.1.17/src/convert.rs
rename : third_party/rust/http/src/error.rs => third_party/rust/http-0.1.17/src/error.rs
rename : third_party/rust/http/src/extensions.rs => third_party/rust/http-0.1.17/src/extensions.rs
rename : third_party/rust/http/src/header/map.rs => third_party/rust/http-0.1.17/src/header/map.rs
rename : third_party/rust/http/src/header/mod.rs => third_party/rust/http-0.1.17/src/header/mod.rs
rename : third_party/rust/http/src/header/name.rs => third_party/rust/http-0.1.17/src/header/name.rs
rename : third_party/rust/http/src/header/value.rs => third_party/rust/http-0.1.17/src/header/value.rs
rename : third_party/rust/http/src/lib.rs => third_party/rust/http-0.1.17/src/lib.rs
rename : third_party/rust/http/src/method.rs => third_party/rust/http-0.1.17/src/method.rs
rename : third_party/rust/http/src/request.rs => third_party/rust/http-0.1.17/src/request.rs
rename : third_party/rust/http/src/response.rs => third_party/rust/http-0.1.17/src/response.rs
rename : third_party/rust/http/src/status.rs => third_party/rust/http-0.1.17/src/status.rs
rename : third_party/rust/http/src/uri/authority.rs => third_party/rust/http-0.1.17/src/uri/authority.rs
rename : third_party/rust/http/src/uri/builder.rs => third_party/rust/http-0.1.17/src/uri/builder.rs
rename : third_party/rust/http/src/uri/mod.rs => third_party/rust/http-0.1.17/src/uri/mod.rs
rename : third_party/rust/http/src/uri/path.rs => third_party/rust/http-0.1.17/src/uri/path.rs
rename : third_party/rust/http/src/uri/port.rs => third_party/rust/http-0.1.17/src/uri/port.rs
rename : third_party/rust/http/src/uri/scheme.rs => third_party/rust/http-0.1.17/src/uri/scheme.rs
rename : third_party/rust/http/src/uri/tests.rs => third_party/rust/http-0.1.17/src/uri/tests.rs
rename : third_party/rust/http/src/version.rs => third_party/rust/http-0.1.17/src/version.rs
rename : third_party/rust/http/tests/header_map.rs => third_party/rust/http-0.1.17/tests/header_map.rs
rename : third_party/rust/http/tests/header_map_fuzz.rs => third_party/rust/http-0.1.17/tests/header_map_fuzz.rs
rename : third_party/rust/http/tests/status_code.rs => third_party/rust/http-0.1.17/tests/status_code.rs
extra : moz-landing-system : lando
2020-01-07 13:28:57 +00:00

35 lines
1.3 KiB
Rust

#![deny(warnings, rust_2018_idioms)]
use bytes::Bytes;
#[test]
fn fmt() {
let vec: Vec<_> = (0..0x100).map(|b| b as u8).collect();
let expected = "b\"\
\\0\\x01\\x02\\x03\\x04\\x05\\x06\\x07\
\\x08\\t\\n\\x0b\\x0c\\r\\x0e\\x0f\
\\x10\\x11\\x12\\x13\\x14\\x15\\x16\\x17\
\\x18\\x19\\x1a\\x1b\\x1c\\x1d\\x1e\\x1f\
\x20!\\\"#$%&'()*+,-./0123456789:;<=>?\
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_\
`abcdefghijklmnopqrstuvwxyz{|}~\\x7f\
\\x80\\x81\\x82\\x83\\x84\\x85\\x86\\x87\
\\x88\\x89\\x8a\\x8b\\x8c\\x8d\\x8e\\x8f\
\\x90\\x91\\x92\\x93\\x94\\x95\\x96\\x97\
\\x98\\x99\\x9a\\x9b\\x9c\\x9d\\x9e\\x9f\
\\xa0\\xa1\\xa2\\xa3\\xa4\\xa5\\xa6\\xa7\
\\xa8\\xa9\\xaa\\xab\\xac\\xad\\xae\\xaf\
\\xb0\\xb1\\xb2\\xb3\\xb4\\xb5\\xb6\\xb7\
\\xb8\\xb9\\xba\\xbb\\xbc\\xbd\\xbe\\xbf\
\\xc0\\xc1\\xc2\\xc3\\xc4\\xc5\\xc6\\xc7\
\\xc8\\xc9\\xca\\xcb\\xcc\\xcd\\xce\\xcf\
\\xd0\\xd1\\xd2\\xd3\\xd4\\xd5\\xd6\\xd7\
\\xd8\\xd9\\xda\\xdb\\xdc\\xdd\\xde\\xdf\
\\xe0\\xe1\\xe2\\xe3\\xe4\\xe5\\xe6\\xe7\
\\xe8\\xe9\\xea\\xeb\\xec\\xed\\xee\\xef\
\\xf0\\xf1\\xf2\\xf3\\xf4\\xf5\\xf6\\xf7\
\\xf8\\xf9\\xfa\\xfb\\xfc\\xfd\\xfe\\xff\"";
assert_eq!(expected, format!("{:?}", Bytes::from(vec)));
}