Testing can be performed at different levels.
Testing Pyramid illustrates the relationship between the number of tests and the effort required to create them.
Unit Tests are the simplest and most numerous. They are usually written by developers while implementing a feature (details).
The Goal of Unit Testing is to verify the correctness of modules (functions, classes) in isolation and to catch defects early in development.