mirror of
https://github.com/project-zot/zot.git
synced 2025-02-03 23:09:41 -05:00
20 lines
287 B
Go
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 }
|