logtest 2.0.0

Test and assert log statements
Documentation
Build #266230 2020-06-30T09:00:22.848593+00:00
# rustc version
rustc 1.46.0-nightly (0ca7f74db 2020-06-29)# docs.rs version
docsrs 0.6.0 (c547669 2020-06-29)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/logtest-2.0.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/logtest-2.0.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1001" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=-Z unstable-options --resource-suffix -20200629-1.46.0-nightly-0ca7f74db --static-root-path / --cap-lints warn --extern-html-root-url lazy_static=https://docs.rs/lazy_static/1.4.0 --extern-html-root-url kv_log_macro=https://docs.rs/kv-log-macro/1.0.6 --extern-html-root-url log=https://docs.rs/log/0.4.8" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "2" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "doc" "--lib" "--no-deps" "-j2", kill_on_drop: false }`
[INFO] [stdout] 2d8a885e81d442e75e3cf9abac12f3084c98ed7a91ad46436c89874ea93edfbc
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "2d8a885e81d442e75e3cf9abac12f3084c98ed7a91ad46436c89874ea93edfbc", kill_on_drop: false }`
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]  Documenting logtest v2.0.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:49:1
[INFO] [stderr]    |
[INFO] [stderr] 49 | /// The "payload" of a log message.
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr] note: the lint level is defined here
[INFO] [stderr]   --> src/lib.rs:41:23
[INFO] [stderr]    |
[INFO] [stderr] 41 | #![warn(missing_docs, missing_doc_code_examples, unreachable_pub)]
[INFO] [stderr]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:52:5
[INFO] [stderr]    |
[INFO] [stderr] 52 |     args: String,
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:53:5
[INFO] [stderr]    |
[INFO] [stderr] 53 |     level: Level,
[INFO] [stderr]    |     ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:54:5
[INFO] [stderr]    |
[INFO] [stderr] 54 |     target: String,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:55:5
[INFO] [stderr]    |
[INFO] [stderr] 55 |     key_values: HashMap<String, String>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:129:1
[INFO] [stderr]     |
[INFO] [stderr] 129 | /// The test logger.
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:158:1
[INFO] [stderr]     |
[INFO] [stderr] 158 | /// Create a new instance of `Logger` and start listening for events.
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:58:1
[INFO] [stderr]    |
[INFO] [stderr] 58 | / impl Record {
[INFO] [stderr] 59 | |     /// The message body.
[INFO] [stderr] 60 | |     pub fn args(&self) -> &str {
[INFO] [stderr] 61 | |         &self.args
[INFO] [stderr] ...  |
[INFO] [stderr] 80 | |     }
[INFO] [stderr] 81 | | }
[INFO] [stderr]    | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:59:5
[INFO] [stderr]    |
[INFO] [stderr] 59 |     /// The message body.
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:64:5
[INFO] [stderr]    |
[INFO] [stderr] 64 |     ///The verbosity level of the message.
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:69:5
[INFO] [stderr]    |
[INFO] [stderr] 69 |     /// The name of the target of the directive.
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]   --> src/lib.rs:74:5
[INFO] [stderr]    |
[INFO] [stderr] 74 |     /// The structured key-value pairs associated with the message.
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:133:1
[INFO] [stderr]     |
[INFO] [stderr] 133 | / impl Logger {
[INFO] [stderr] 134 | |     /// Create a new instance of `Logger` and start listening for events.
[INFO] [stderr] 135 | |     pub fn start() -> Self {
[INFO] [stderr] 136 | |         log::set_logger(&LoggerInternal).unwrap();
[INFO] [stderr] ...   |
[INFO] [stderr] 155 | |     }
[INFO] [stderr] 156 | | }
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:134:5
[INFO] [stderr]     |
[INFO] [stderr] 134 |     /// Create a new instance of `Logger` and start listening for events.
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:141:5
[INFO] [stderr]     |
[INFO] [stderr] 141 |     /// Pop an event from the front of the event queue.
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:147:5
[INFO] [stderr]     |
[INFO] [stderr] 147 |     /// Returns the number of elements in the `Logger`.
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:152:5
[INFO] [stderr]     |
[INFO] [stderr] 152 |     /// Returns `true` if the `Logger` is empty.
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:163:1
[INFO] [stderr]     |
[INFO] [stderr] 163 | / impl Iterator for Logger {
[INFO] [stderr] 164 | |     type Item = Record;
[INFO] [stderr] 165 | |     fn next(&mut self) -> Option<Self::Item> {
[INFO] [stderr] 166 | |         self.pop()
[INFO] [stderr] 167 | |     }
[INFO] [stderr] 168 | | }
[INFO] [stderr]     | |_^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:164:5
[INFO] [stderr]     |
[INFO] [stderr] 164 |     type Item = Record;
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing code example in this documentation
[INFO] [stderr]    --> src/lib.rs:165:5
[INFO] [stderr]     |
[INFO] [stderr] 165 | /     fn next(&mut self) -> Option<Self::Item> {
[INFO] [stderr] 166 | |         self.pop()
[INFO] [stderr] 167 | |     }
[INFO] [stderr]     | |_____^
[INFO] [stderr] 
[INFO] [stderr] warning: 20 warnings emitted
[INFO] [stderr] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1.83s
[INFO] running `Command { std: "docker" "inspect" "2d8a885e81d442e75e3cf9abac12f3084c98ed7a91ad46436c89874ea93edfbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2d8a885e81d442e75e3cf9abac12f3084c98ed7a91ad46436c89874ea93edfbc", kill_on_drop: false }`
[INFO] [stdout] 2d8a885e81d442e75e3cf9abac12f3084c98ed7a91ad46436c89874ea93edfbc