[go-nuts] Guidance on techniques that can help me write a comprehensive test for my go library.

2024-06-05 Thread Ai Readone
Hello Everyone, I am currently writing a go library that Integrates various Google cloud services. The aim of the library is to eliminate duplicate implementations across various services of the same software. I am having challenges on how to write a comprehensive test for my library, the main

[go-nuts] Re: Guidance on techniques that can help me write a comprehensive test for my go library.

2024-06-05 Thread Marcello H
Normally, the way to use the functions/methods of the external library is by having an interface with all the function definitions. Then you can generate a mock that offers the same functionality. With such a mock, you can give all kinds of results back to the caller. Do you have your project in