- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for TestingBlock (0.26 sec)
-
platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/BuildScriptBuilder.java
} return statements; } } private static class TestingBlock extends BlockStatement implements TestingBuilder, BlockBody { private final BuildScriptBuilder builder; private final List<SuiteSpec> suites = new ArrayList<>(); TestingBlock(BuildScriptBuilder builder) { super("testing"); this.builder = builder; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Dec 21 12:02:29 UTC 2023 - 90K bytes - Viewed (0) -
pkg/kubelet/util/cache/object_cache_test.go
limitations under the License. */ package cache import ( "fmt" "testing" "time" expirationcache "k8s.io/client-go/tools/cache" "k8s.io/utils/clock" testingclock "k8s.io/utils/clock/testing" ) type testObject struct { key string val string } // A fake objectCache for unit test.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 17 13:19:08 UTC 2021 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz_test.go
limitations under the License. */ package server import ( "testing" "time" testingclock "k8s.io/utils/clock/testing" ) func TestDelayedHealthCheck(t *testing.T) { t.Run("test that liveness check returns true until the delay has elapsed", func(t *testing.T) { t0 := time.Unix(0, 0) c := testingclock.NewFakeClock(t0) doneCh := make(chan struct{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 2.2K bytes - Viewed (0) -
pkg/controller/tainteviction/timed_workers_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:23:56 UTC 2023 - 5.6K bytes - Viewed (0) -
pkg/kubelet/util/queue/work_queue_test.go
"time" "github.com/stretchr/testify/assert" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/utils/clock" testingclock "k8s.io/utils/clock/testing" ) func newTestBasicWorkQueue() (*basicWorkQueue, *testingclock.FakeClock) { fakeClock := testingclock.NewFakeClock(time.Now()) wq := &basicWorkQueue{ clock: fakeClock, queue: make(map[types.UID]time.Time), } return wq, fakeClock }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_received_time_test.go
limitations under the License. */ package filters import ( "net/http" "net/http/httptest" "testing" "time" "k8s.io/apiserver/pkg/endpoints/request" testingclock "k8s.io/utils/clock/testing" ) func TestWithRequestReceivedTimestamp(t *testing.T) { receivedTimestampExpected := time.Now() var ( callCount int receivedTimestampGot time.Time
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 2K bytes - Viewed (0) -
pkg/kubelet/token/token_manager_test.go
"time" authenticationv1 "k8s.io/api/authentication/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" testingclock "k8s.io/utils/clock/testing" ) func TestTokenCachingAndExpiration(t *testing.T) { type suite struct { clock *testingclock.FakeClock tg *fakeTokenGetter mgr *Manager } cases := []struct { name string exp time.Duration
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 04 00:16:47 UTC 2022 - 16.2K bytes - Viewed (0) -
pkg/kubelet/active_deadline_test.go
"k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/tools/record" "k8s.io/kubernetes/pkg/kubelet/status" "k8s.io/utils/clock" testingclock "k8s.io/utils/clock/testing" ) // mockPodStatusProvider returns the status on the specified pod type mockPodStatusProvider struct { pods []*v1.Pod }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 08 09:06:42 UTC 2022 - 4.5K bytes - Viewed (0) -
pkg/controlplane/controller/legacytokentracking/controller_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/client-go/kubernetes/fake" core "k8s.io/client-go/testing" testingclock "k8s.io/utils/clock/testing" ) const throttlePeriod = 30 * time.Second func TestSyncConfigMap(t *testing.T) { now := time.Now().UTC() tests := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 19 17:33:34 UTC 2023 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache_test.go
"crypto/sha256" "fmt" "sync" "sync/atomic" "testing" "time" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apiserver/pkg/storage/value" testingclock "k8s.io/utils/clock/testing" ) func TestSimpleCacheSetError(t *testing.T) { fakeClock := testingclock.NewFakeClock(time.Now()) cache := newSimpleCache(fakeClock, time.Second, "providerName") tests := []struct { name string key []byte
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 31 20:26:58 UTC 2023 - 4.9K bytes - Viewed (0)