Go SDK Unit Testing
This article introduces how to use Go SDK for unit testing.
After modifying the unit test code, you can directly test the interface return results.
Unit Test Code Location
Code Repository
- github: https://github.com/toolsetlink/upgradelink-api-go
- gitee: https://gitee.com/toolsetlink/upgradelink-api-go
Unit Test Code Location
- github: https://github.com/toolsetlink/upgradelink-api-go/blob/main/test/client_test.go
- gitee: https://gitee.com/toolsetlink/upgradelink-api-go/blob/main/test/client_test.go
Execution Steps
Download the code repository
Replace the application's accessKey and accessSecret
Replace the application's unique identifier
Execute TestGetUrlUpgrade and TestGetFileUpgrade methods
View the test results