Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

They are placed in a module named tests and annotated with cfg(test) in each source file:

The annotation tells cargo to only include the following code when the named configuration (i.e.: test) is used.

Testing of private functions is allowed in unit tests:

A function with its test:

Assert macros: