Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for oldname (0.96 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming_exceptionalReturn() throws Exception {
        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
        assertEquals(oldName, Thread.currentThread().getName());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testRenaming_exceptionalReturn() throws Exception {
        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. migrator.go

    	GetTypeAliases(databaseTypeName string) []string
    
    	// Tables
    	CreateTable(dst ...interface{}) error
    	DropTable(dst ...interface{}) error
    	HasTable(dst interface{}) bool
    	RenameTable(oldName, newName interface{}) error
    	GetTables() (tableList []string, err error)
    	TableType(dst interface{}) (TableType, error)
    
    	// Columns
    	AddColumn(dst interface{}, field string) error
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Callables.java

        return () -> {
          Thread currentThread = Thread.currentThread();
          String oldName = currentThread.getName();
          boolean restoreName = trySetName(nameSupplier.get(), currentThread);
          try {
            return callable.call();
          } finally {
            if (restoreName) {
              boolean unused = trySetName(oldName, currentThread);
            }
          }
        };
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. pkg/kubelet/container/os.go

    func (RealOS) MkdirAll(path string, perm os.FileMode) error {
    	return os.MkdirAll(path, perm)
    }
    
    // Symlink will call os.Symlink to create a symbolic link.
    func (RealOS) Symlink(oldname string, newname string) error {
    	return os.Symlink(oldname, newname)
    }
    
    // Stat will call os.Stat to get the FileInfo for a given path
    func (RealOS) Stat(path string) (os.FileInfo, error) {
    	return os.Stat(path)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/Callables.java

        return () -> {
          Thread currentThread = Thread.currentThread();
          String oldName = currentThread.getName();
          boolean restoreName = trySetName(nameSupplier.get(), currentThread);
          try {
            return callable.call();
          } finally {
            if (restoreName) {
              boolean unused = trySetName(oldName, currentThread);
            }
          }
        };
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. pkg/kubelet/container/testing/os.go

    	if f.MkdirAllFn != nil {
    		return f.MkdirAllFn(path, perm)
    	}
    	return nil
    }
    
    // Symlink is a fake call that just returns nil.
    func (f *FakeOS) Symlink(oldname string, newname string) error {
    	if f.SymlinkFn != nil {
    		return f.SymlinkFn(oldname, newname)
    	}
    	return nil
    }
    
    // Stat is a fake that returns an error
    func (f *FakeOS) Stat(path string) (os.FileInfo, error) {
    	if f.StatFn != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 13:37:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. src/internal/diff/diff.go

    // when in fact the algorithm is faster than the standard one.
    func Diff(oldName string, old []byte, newName string, new []byte) []byte {
    	if bytes.Equal(old, new) {
    		return nil
    	}
    	x := lines(old)
    	y := lines(new)
    
    	// Print diff header.
    	var out bytes.Buffer
    	fmt.Fprintf(&out, "diff %s %s\n", oldName, newName)
    	fmt.Fprintf(&out, "--- %s\n", oldName)
    	fmt.Fprintf(&out, "+++ %s\n", newName)
    
    	// Loop over matches to consider,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 14:13:04 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. pkg/apis/resource/validation/validation_resourceslice_test.go

    			slice:        testResourceSlice(badName, goodName, driverName),
    		},
    		"generate-name": {
    			slice: func() *resource.ResourceSlice {
    				slice := testResourceSlice(goodName, goodName, driverName)
    				slice.GenerateName = "prefix-"
    				return slice
    			}(),
    		},
    		"uid": {
    			slice: func() *resource.ResourceSlice {
    				slice := testResourceSlice(goodName, goodName, driverName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. 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)
Back to top