#Unit Test

5 articles

Techniques for Creating Mocking Unit Tests in Golang

Techniques for Creating Mocking Unit Tests in Golang

When we create a function or code, sometimes we have difficulty carrying out unit tests at several points that we cannot cover with unit tests.

How to Create Integration Tests in Golang

How to Create Integration Tests in Golang

Carrying out integration tests for APIs means that we must at least be able to run the application first so that integrated testing can be carried out.

How to Create Unit Tests Using the moq Library in Golang

How to Create Unit Tests Using the moq Library in Golang

Carrying out unit tests using this mocking method is usually used if several functions have been carried out in interface format so that we can assume that if we call the interface function we believe that it should produce the correct program.

How to Create Benchmark Units in Golang

How to Create Benchmark Units in Golang

The testing package, apart from containing tools for testing, also contains tools for benchmarking.

How to Create Unit Tests in Golang

How to Create Unit Tests in Golang

Unit Testing Using the Go Library programming is not easy, even the best programmers cannot write programs that work exactly as desired every time.