4 个仓库
Testing patterns that use slices of anonymous structs to execute multiple test cases through a single logic loop.
Distinct from Unit Testing: Focuses specifically on the table-driven data structure pattern rather than general unit test isolation.
Explore 4 awesome GitHub repositories matching testing & quality assurance · Table-Driven Tests. Refine with filters or upvote what's useful.
This project is a translated Go language style guide and programming standard. It provides a collection of coding standards and best practices designed to ensure that Go code remains maintainable, readable, and efficient. The guide focuses on idiomatic patterns for error handling, interface compliance, and memory optimization. It establishes standards for package naming and the use of functional options to maintain backward compatibility in constructors. It covers a broad range of capabilities, including concurrency management for coordinating process lifecycles and preventing resource leaks
Implements structured table-driven testing workflows to increase code coverage and simplify maintenance.
This project is a reference implementation of Domain-Driven Design, Clean Architecture, and Command Query Responsibility Segregation (CQRS) patterns using the Go programming language. It serves as a sample application to demonstrate how to decouple core domain rules from infrastructure and delivery mechanisms. The system is built as a gRPC microservices architecture, utilizing type-safe communication and service contracts. It implements an event-driven architecture to manage eventual consistency and asynchronous processing, specifically employing the Outbox pattern to ensure reliable messagin
Uses table-driven tests and interface mocks to verify pure application orchestration and domain logic.
gotests 是一个 Go 语言的静态分析工具和样板代码生成器,可从源代码自动创建结构化的测试套件。它作为一个表驱动(table-driven)的测试框架,处理函数和方法的类型解析,包括将泛型类型约束映射到具体的实现类型。 该工具集成了大语言模型,能够根据函数逻辑合成真实的输入值和边界情况。它使用模板驱动的生成系统,允许通过外部模板和参数自定义生成测试代码的结构和格式。 该项目提供了用于递归包扫描和目录树处理的命令行工具。它包含作用域控制机制,可以使用正则表达式和可见性修饰符来过滤函数选择。
Creates table-driven boilerplate for generic functions by mapping type constraints to concrete implementation types.
该项目是 Go 语言的综合性能编程指南和参考,专注于运行时效率和内存优化。它提供了一系列模式和技术,旨在通过减少垃圾回收开销和优化内存使用来提高执行速度。 该资源通过详细的内存优化参考实现脱颖而出,例如逃逸分析、对象池和结构体内存对齐。它提供了减少二进制大小和通过结构体内存布局优化及使用零分配占位符来提高 CPU 缓存效率的具体策略。 该项目涵盖了广泛的后端工程功能,包括使用工作池和同步原语的并发管理、高性能 RPC 和 HTTP 路由以及分布式缓存策略。它还包括通过 CPU 和内存分析进行可观测性的指南,以及用于功能单元测试和模拟对象生成的质量保证模式。 内容结构化为一系列教程、架构示例和基准测试指南,以帮助开发者分析和修复性能瓶颈。
Provides examples of table-driven tests to organize multiple scenarios within a single function for better maintainability.