https://github.com/ferretdb/xfail
https://github.com/ferretdb/xfail
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ferretdb/xfail
- Owner: FerretDB
- License: apache-2.0
- Created: 2024-04-17T16:08:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T09:12:10.000Z (over 1 year ago)
- Last Synced: 2025-03-26T00:35:42.510Z (10 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xfail
Go package providing testing helpers for expected tests failures.
## Examples
### Simple
```go
func TestParseDuration(tt *testing.T) {
t := XFail(tt, "https://github.com/golang/go/issues/67076")
if _, err := time.ParseDuration("3.336e-6s"); err != nil {
t.Fatal(err)
}
}
```
## License
Copyright 2021 FerretDB Inc. Licensed under Apache License v2.0.