- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewGomegaWithT (0.17 sec)
-
pkg/filewatcher/filewatcher_test.go
"errors" "fmt" "os" "os/exec" "path" "runtime" "sync" "testing" "github.com/fsnotify/fsnotify" . "github.com/onsi/gomega" ) func newWatchFile(t *testing.T) string { g := NewGomegaWithT(t) watchDir := t.TempDir() watchFile := path.Join(watchDir, "test.conf") err := os.WriteFile(watchFile, []byte("foo: bar\n"), 0o640) g.Expect(err).NotTo(HaveOccurred()) return watchFile }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 7.9K bytes - Viewed (0) -
pilot/pkg/status/resourcelock_test.go
"testing" . "github.com/onsi/gomega" "k8s.io/apimachinery/pkg/runtime/schema" "istio.io/api/meta/v1alpha1" "istio.io/istio/pkg/config" ) func TestResourceLock_Lock(t *testing.T) { g := NewGomegaWithT(t) r1 := Resource{ GroupVersionResource: schema.GroupVersionResource{ Group: "r1", Version: "r1", }, Namespace: "r1", Name: "r1", Generation: "11", } r1a := Resource{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 2.1K bytes - Viewed (0) -
pkg/config/analysis/diag/message_test.go
} func TestMessage_ReplaceLine(t *testing.T) { testCases := []string{"test.yaml", "test.yaml:1", "test.yaml:10", "test.yaml: 10", "test", "test:10", "123:10", "123"} result := make([]string, 0) g := NewGomegaWithT(t) m := &Message{Line: 321} for _, v := range testCases { result = append(result, m.ReplaceLine(v)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.7K bytes - Viewed (0)