Rust is an almost perfect tool for creating reliable applications. The compiler is so strict and never misses any potential memory access error or data race, but still there are many ways to make a mistake in the code. In other words, Rust helps you a lot, but it is not omnipotent.
Testing microservices
Unit testing
Microservices can also have bugs, so you have to be armed to handle all possible bugs. The first line of defense is unit testing.
Unit testing involves using HTTP clients to send an isolated request to a server or a request handler. In a unit test, you should check only one function. It's necessary to cover the majority of the code that helps to keep the same behavior of a function that can be reimplemented...