Tag

Unit Test

1 views collected around this technical thread.

Go Programming World
Go Programming World
May 10, 2024 · Backend Development

Comprehensive Guide to Writing Tests in Go: Unit, Benchmark, Example, and Fuzz Testing

This article provides a detailed tutorial on Go's testing framework, covering test classifications such as unit, benchmark, example, and fuzz tests, explaining naming conventions, file organization, test execution commands, parallel testing, coverage measurement, and how to integrate these practices into robust backend development workflows.

BenchmarkGoTesting
0 likes · 31 min read
Comprehensive Guide to Writing Tests in Go: Unit, Benchmark, Example, and Fuzz Testing
360 Quality & Efficiency
360 Quality & Efficiency
Feb 10, 2023 · Backend Development

Using Go's Built‑in Testing Tools: Unit Tests, Benchmarks, Coverage, Fuzzing, and Race Detection

This article introduces Go's native testing ecosystem—including unit testing, benchmark performance measurement, code‑coverage analysis, fuzz testing, and race‑condition detection—through a practical bookkeeping‑app example, demonstrating how each tool can uncover bugs, improve performance, and raise overall code quality.

BenchmarkCode CoverageGo
0 likes · 11 min read
Using Go's Built‑in Testing Tools: Unit Tests, Benchmarks, Coverage, Fuzzing, and Race Detection
php中文网 Courses
php中文网 Courses
Jan 17, 2023 · Backend Development

Implementing the Chain of Responsibility Design Pattern in PHP with Hyperf

This article demonstrates how to implement the Chain of Responsibility design pattern in PHP using the Hyperf framework, detailing the file structure, core classes such as IndexController, HandlerInterface, AbstractHandler, and concrete handlers, and includes a unit test example to verify the workflow.

Backend DevelopmentChain of ResponsibilityDesign Pattern
0 likes · 7 min read
Implementing the Chain of Responsibility Design Pattern in PHP with Hyperf
360 Tech Engineering
360 Tech Engineering
Feb 19, 2021 · Backend Development

Guide to Writing and Running Unit Tests in Go

This article explains the importance of unit testing for reliable software, introduces Go's built‑in testing framework, demonstrates how to write test files, use TestMain, benchmark code, and employ the httptest package for HTTP server testing, all illustrated with complete code examples.

BenchmarkCode CoverageGo
0 likes · 12 min read
Guide to Writing and Running Unit Tests in Go