mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 16:35:44 +03:00
* [no ci] use json for grouping packages for testing * [no ci] able to get packages in group * [no ci] able to run groups of tests * [no ci] more * [no ci] try disable circle unit tests * ci: use actions/checkout@v3 * ci: rename to quick * ci: need make dev in mods cache step * ci: make compile step depend on checks step * ci: bump consul and vault versions * ci: need make dev for group tests * ci: update ci unit testing docs * docs: spell plumbing correctly Co-authored-by: Tim Gross <tgross@hashicorp.com> Co-authored-by: Tim Gross <tgross@hashicorp.com>
22 lines
372 B
Go
22 lines
372 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/shoenig/test/must"
|
|
)
|
|
|
|
func Test_isCoveredOne(t *testing.T) {
|
|
try := func(p string, exp bool) {
|
|
result := isCoveredOne(p, "foo/bar")
|
|
must.Eq(t, exp, result)
|
|
}
|
|
try("baz", false)
|
|
try("foo", false)
|
|
try("foo/bar/baz", false)
|
|
try("foo/bar", true)
|
|
try("foo/bar/...", true)
|
|
try("foo/...", true)
|
|
try("abc/...", false)
|
|
}
|