gomatch:创建用于根据模式测试JSON的库

时间:2021-05-28 03:27:09
【文件属性】:
文件名称:gomatch:创建用于根据模式测试JSON的库
文件大小:33KB
文件格式:ZIP
更新时间:2021-05-28 03:27:09
testing golang json tdd pattern-matching 围棋 创建用于根据模式测试JSON的库。 目的是能够仅针对给定测试用例中必不可少的部分来验证JSON,从而使测试更具表现力且不那么脆弱。 它可以与单元测试和功能测试一起使用。 当与Gherkin驱动的BDD测试一起使用时,它可以使场景更加紧凑和易读。 请参阅 比赛 安装 go get github.com/jfilipczyk/gomatch 基本用法 actual := ` { "id": 351, "name": "John Smith", "address": { "city": "Boston" } } ` expected := ` { "id": "@number@", "name": "John Smith", "address": { "city": "@string@" } } ` m := gomatch . New
【文件预览】:
gomatch-master
----wildcard_matcher.go(515B)
----chain_matcher.go(923B)
----go.mod(173B)
----array_matcher_test.go(876B)
----wildcard_matcher_test.go(985B)
----string_matcher_test.go(823B)
----go.sum(860B)
----json_matcher_test.go(6KB)
----logo.svg(7KB)
----uuid_matcher.go(727B)
----number_matcher_test.go(852B)
----string_matcher.go(643B)
----json_matcher.go(8KB)
----bool_matcher_test.go(761B)
----number_matcher.go(723B)
----.travis.yml(297B)
----LICENSE(1KB)
----README.md(4KB)
----chain_matcher_test.go(938B)
----bool_matcher.go(615B)
----logo.png(14KB)
----email_matcher.go(888B)
----array_matcher.go(642B)
----.gitignore(8B)
----email_matcher_test.go(1KB)
----CHANGELOG.md(492B)
----uuid_matcher_test.go(867B)

网友评论