Rust Testing: A Short Guide to Mocking
So you need to mock something in Rust? There are a few different approaches you can take, and the best one depends on your needs. You can either roll your own mocking implementation or use an existing crate.
So you need to mock something in Rust? There are a few different approaches you can take, and the best one depends on your needs. You can either roll your own mocking implementation or use an existing crate.
I recently had problems with smart dimmer switches that led me down a path to Home Assistant. What started as a simple switch replacement ended up being a full automation setup.
Part 0: Intro, Part 1: Auth and Part 2: CRUD and Part 3: Notification
In this part, we will create a CI/CD process using AWS tools. There are a few AWS services for that:
An enum type is a special data type that holds a list of constants.
An enum type variable must be equal to one of those constants.
Java Enum is a type of class that is defined with the enum keyword and was introduced in Java 5.
As mentioned, it’s used to define a list of constants, but is not limited to that and can also contain methods and fields.
More specific information could be found in Java enum’s documentation.
Here we will implement the last, but not least part of our application - notifying customers that they should come to the place they are waiting for:
It has two lambda functions: