Skip to content

Commit

Permalink
mock: document public API in collector module (#2389)
Browse files Browse the repository at this point in the history
There has been interest around publishing `tracing-mock` to crates.io
for some time. In order to make this possible, documentation and some
code clean up is needed.

This change adds documentation to the collector module itself and to all the
public APIs in the module. This includes doctests on all the methods
that serve as examples.

Additionally the implementation for the `Expect` struct has been moved
into the module with the definition, this was missed in #2369.

Refs: #539
  • Loading branch information
hds committed Jun 24, 2023
1 parent 2906278 commit 9ad2740
Show file tree
Hide file tree
Showing 2 changed files with 893 additions and 72 deletions.

0 comments on commit 9ad2740

Please sign in to comment.