Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 40 for oldName (0.56 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	expectNoDiff(t, "incorrect first page", []example.Pod{*preset[0].storedObj}, out.Items)
    
    	continueFromSecondItem := out.Continue
    
    	// update /second/bar
    	oldName := preset[2].obj.Name
    	newPod := &example.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: oldName,
    			Labels: map[string]string{
    				"state": "new",
    			},
    		},
    	}
    	if err := store.GuaranteedUpdate(ctx, preset[2].key, preset[2].storedObj, false, nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/promise/promise_test.go

    limitations under the License.
    */
    
    package promise
    
    import (
    	"context"
    	"testing"
    	"time"
    
    	"k8s.io/apimachinery/pkg/util/wait"
    )
    
    func TestWriteOnceSet(t *testing.T) {
    	oldTime := time.Now()
    	cval := &oldTime
    	ctx, cancel := context.WithCancel(context.Background())
    	wr := NewWriteOnce(nil, ctx, cval)
    	gots := make(chan interface{})
    	goGetExpectNotYet(t, wr, gots, "Set")
    	now := time.Now()
    	aval := &now
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 19:19:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy

        static class OldSuper {}
    
        static class OldBase extends OldSuper {}
    
        static class NewSuper {}
    
        static class NewBase extends NewSuper {}
    
        @Incubating
        static class NewIncubatingBase extends NewSuper {}
    
        @Incubating
        interface IncubatingInterface {}
    
        interface InternalInterface {}
    
        interface StablePublicInterface {}
    
        CtClass oldBase
        CtClass newBase
        CtClass newSuper
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 4K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/MethodsRemovedInInternalSuperClassRuleTest.groovy

                classes[it.simpleName] = c
            }
            [OldBase, OldSub, NewBase, NewSub].each {
                classes[it.simpleName] = instanceScopedPool.get(it.name)
            }
    
            classes['OldBase'].superclass = classes['OldSuperInternal']
            classes['NewBase'].superclass = classes['NewSuperInternal']
            classes['OldSub'].superclass = classes['OldBase']
            classes['NewSub'].superclass = classes['NewBase']
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 06 19:15:15 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  5. src/encoding/json/fold.go

    // license that can be found in the LICENSE file.
    
    package json
    
    import (
    	"unicode"
    	"unicode/utf8"
    )
    
    // foldName returns a folded string such that foldName(x) == foldName(y)
    // is identical to bytes.EqualFold(x, y).
    func foldName(in []byte) []byte {
    	// This is inlinable to take advantage of "function outlining".
    	var arr [32]byte // large enough for most JSON names
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go

    	close(doneCh)
    	time.Sleep(time.Second) // give it a chance to misbehave
    	goGetAndExpect(t, clock, counter, wr, gots, aval)
    }
    func TestCountingWriteOnceCancel(t *testing.T) {
    	oldTime := time.Now()
    	cval := &oldTime
    	clock, counter := testeventclock.NewFake(oldTime, 0, nil)
    	ctx, cancel := context.WithCancel(context.Background())
    	var lock sync.Mutex
    	wr := NewCountingWriteOnce(counter, &lock, nil, ctx.Done(), cval)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  7. src/encoding/json/fold_test.go

    		{"AesKey", "AESKey"},
    		{"AESKey", "aeskey"},
    		{"DESKey", "aeskey"},
    		{"AES Key", "aeskey"},
    	} {
    		f.Add([]byte(ss[0]), []byte(ss[1]))
    	}
    	equalFold := func(x, y []byte) bool { return string(foldName(x)) == string(foldName(y)) }
    	f.Fuzz(func(t *testing.T, x, y []byte) {
    		got := equalFold(x, y)
    		want := bytes.EqualFold(x, y)
    		if got != want {
    			t.Errorf("equalFold(%q, %q) = %v, want %v", x, y, got, want)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. src/runtime/pprof/mprof_test.go

    	rv.Call(nil)
    }
    
    var memoryProfilerRun = 0
    
    func TestMemoryProfiler(t *testing.T) {
    	// Disable sampling, otherwise it's difficult to assert anything.
    	oldRate := runtime.MemProfileRate
    	runtime.MemProfileRate = 1
    	defer func() {
    		runtime.MemProfileRate = oldRate
    	}()
    
    	// Allocate a meg to ensure that mcache.nextSample is updated to 1.
    	for i := 0; i < 1024; i++ {
    		memSink = make([]byte, 1024)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 16 15:20:22 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            normalizedMessage.readLines().size() == DefaultDeleter.MAX_REPORTED_PATHS * 2 + 5
        }
    
        class FileTime {
    
            static long oldTime = 1000
            static long startTime = oldTime + 2000
            static long newTime = startTime + 2000
    
            static DefaultDeleter deleterWithDeletionAction(Function<File, DeletionAction> deletionAction) {
                new DefaultDeleter(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocWorkAvoidanceIntegrationTest.groovy

                    from("external/b")
                    from("external/c")
                    from("external/d")
    
                    archiveFileName = "external.jar"
                    preserveFileTimestamps = Boolean.getBoolean("oldTime")
                }
            """
            def externalJar = file("build/libs/external.jar")
            ['a', 'b', 'c', 'd'].each {
                file("external/$it").touch()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top