mirror of https://github.com/shirou/gopsutil
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
239 B
Go
15 lines
239 B
Go
1 week ago
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
package common
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func SkipIfNotImplementedErr(tb testing.TB, err error) {
|
||
|
tb.Helper()
|
||
|
if errors.Is(err, ErrNotImplementedError) {
|
||
|
tb.Skip("not implemented")
|
||
|
}
|
||
|
}
|