Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

1995parham-learning/go-test-dsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Go using DSL

Introduction

We're building a domain-specific language (DSL) in Go to simplify assertions for data structures like arrays and numbers. The goal is to create a more expressive and readable way to write tests. For instance, to verify that a specific element in an array holds a particular value, you could write an assertion like this:

result := ForList([]int{22, 33, 44}).ElemAt(1).ShouldBe(EqualTo(33))

This approach makes the test's intent clear and easy to understand at a glance. In the example [11, 33, 44], the expression would evaluate to true.

About

Domain-specific Language (DSL) for write tests in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages