Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for newNames (0.17 sec)

  1. pkg/config/host/names.go

    				}
    			} else if oHost.SubsetOf(hHost) {
    				if !result.Contains(oHost) {
    					result = append(result, oHost)
    				}
    			}
    		}
    	}
    	return result
    }
    
    // NewNames converts a slice of host name strings to type Names.
    func NewNames(hosts []string) Names {
    	result := make(Names, 0, len(hosts))
    	for _, host := range hosts {
    		result = append(result, Name(host))
    	}
    	return result
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 01 19:19:22 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  2. src/syscall/dirent.go

    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/dirent.go

    // appending the names to names. It returns the number of
    // bytes consumed from buf, the number of entries added
    // to names, and the new names slice.
    func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) {
    	origlen := len(buf)
    	count = 0
    	for max != 0 && len(buf) > 0 {
    		reclen, ok := direntReclen(buf)
    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

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

        String oldName = Thread.currentThread().getName();
        final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName");
        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
              }
            };
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. pkg/kube/krt/index_test.go

    	tt.WaitUnordered("add/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    	pc.UpdateStatus(pod)
    	tt.WaitUnordered("update/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{})
    	assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}})
    
    	pod2 := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    	fdate = fdate[len(fdate)-len("2006-01-02"):]
    
    	newname := filepath.Join(u.dir.UploadDir(), fdate+".json")
    	if _, err := os.Stat(newname); err == nil {
    		// Another process uploaded but failed to clean up (or hasn't yet cleaned
    		// up). Ensure that cleanup occurs.
    		_ = os.Remove(fname)
    		return false
    	}
    
    	// Lock the upload, to prevent duplicate uploads.
    	{
    		lockname := newname + ".lock"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

          story === Story.MISSING,
          "Test stories missing, checkout git submodule",
        )
    
        val newCases = mutableListOf<Case>()
        for (case in story.cases) {
          hpackWriter.writeHeaders(case.headersList)
          newCases += case.copy(wire = bytesOut.readByteString())
        }
    
        testDecoder(story.copy(cases = newCases))
      }
    
      companion object {
        private val RAW_DATA = arrayOf("raw-data")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/initialization/DefaultProjectDescriptorTest.groovy

            descriptor.setProjectDescriptorRegistry(registry)
    
            when:
            descriptor.name = "newName"
    
            then:
            1 * registry.changeDescriptorPath(Path.path(Project.PATH_SEPARATOR + testName.methodName), Path.path(Project.PATH_SEPARATOR + "newName"))
            descriptor.name == "newName"
        }
    
        def "can set relative project directory"() {
            given:
            def descriptor = projectDescriptor()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 08 03:33:31 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  10. pkg/kube/krt/helpers.go

    // and will automatically implement the various interfaces to return the name, namespace, and a key based on these two.
    type Named struct {
    	Name, Namespace string
    }
    
    // NewNamed builds a Named object from a Kubernetes object type.
    func NewNamed(o metav1.Object) Named {
    	return Named{Name: o.GetName(), Namespace: o.GetNamespace()}
    }
    
    func (n Named) ResourceName() string {
    	return n.Namespace + "/" + n.Name
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top