0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/test/prod.go
Ramkumar Chinchani e0a1a82890 coverage: add failure injection framework
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
2022-01-28 08:56:00 -08:00

20 lines
287 B
Go

//go:build !dev
// +build !dev
package test
func Error(err error) error {
return err
}
func Ok(ok bool) bool {
return ok
}
/**
*
* Failure injection infrastructure to cover hard-to-reach code paths (nop in production).
*
**/
func InjectFailure(skip int) bool { return false }