awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

4 个仓库

Awesome GitHub RepositoriesTable-Driven Tests

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.

Awesome Table-Driven Tests GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • xxjwxc/uber_go_guide_cnxxjwxc 的头像

    xxjwxc/uber_go_guide_cn

    8,172在 GitHub 上查看↗

    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.

    chinesecngo
    在 GitHub 上查看↗8,172
  • threedotslabs/wild-workouts-go-ddd-exampleThreeDotsLabs 的头像

    ThreeDotsLabs/wild-workouts-go-ddd-example

    6,348在 GitHub 上查看↗

    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.

    Goclean-architecturecqrsddd
    在 GitHub 上查看↗6,348
  • cweill/gotestscweill 的头像

    cweill/gotests

    5,315在 GitHub 上查看↗

    gotests 是一个 Go 语言的静态分析工具和样板代码生成器,可从源代码自动创建结构化的测试套件。它作为一个表驱动(table-driven)的测试框架,处理函数和方法的类型解析,包括将泛型类型约束映射到具体的实现类型。 该工具集成了大语言模型,能够根据函数逻辑合成真实的输入值和边界情况。它使用模板驱动的生成系统,允许通过外部模板和参数自定义生成测试代码的结构和格式。 该项目提供了用于递归包扫描和目录树处理的命令行工具。它包含作用域控制机制,可以使用正则表达式和可见性修饰符来过滤函数选择。

    Creates table-driven boilerplate for generic functions by mapping type constraints to concrete implementation types.

    Gocode-generatorcommandlinego
    在 GitHub 上查看↗5,315
  • geektutu/high-performance-gogeektutu 的头像

    geektutu/high-performance-go

    3,888在 GitHub 上查看↗

    该项目是 Go 语言的综合性能编程指南和参考,专注于运行时效率和内存优化。它提供了一系列模式和技术,旨在通过减少垃圾回收开销和优化内存使用来提高执行速度。 该资源通过详细的内存优化参考实现脱颖而出,例如逃逸分析、对象池和结构体内存对齐。它提供了减少二进制大小和通过结构体内存布局优化及使用零分配占位符来提高 CPU 缓存效率的具体策略。 该项目涵盖了广泛的后端工程功能,包括使用工作池和同步原语的并发管理、高性能 RPC 和 HTTP 路由以及分布式缓存策略。它还包括通过 CPU 和内存分析进行可观测性的指南,以及用于功能单元测试和模拟对象生成的质量保证模式。 内容结构化为一系列教程、架构示例和基准测试指南,以帮助开发者分析和修复性能瓶颈。

    Provides examples of table-driven tests to organize multiple scenarios within a single function for better maintainability.

    Goeffective-golanggogolang
    在 GitHub 上查看↗3,888
  1. Home
  2. Testing & Quality Assurance
  3. Software Testing
  4. Testing Frameworks
  5. Unit
  6. Unit Testing
  7. Table-Driven Tests

探索子标签

  • Boilerplate GeneratorsTools that automatically create the initial structural code and templates for tests. **Distinct from Table-Driven Tests:** Distinct from Table-Driven Tests: focuses on the automatic generation of the boilerplate code rather than the testing pattern itself.
  • GenericTable-driven testing patterns specifically adapted for generic functions by mapping constraints to concrete types. **Distinct from Table-Driven Tests:** Distinct from Table-Driven Tests by focusing on the specific challenge of handling generic type constraints in the test table.