Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for GetTable (0.34 sec)

  1. src/internal/types/testdata/check/funcinference.go

    		p := PT(&result[i])
    		// PT has a Set method.
    		p.Set(v)
    	}
    	return result
    }
    
    type Settable int
    
    func (p *Settable) Set(s string) {
    	i, _ := strconv.Atoi(s) // real code should not ignore the error
    	*p = Settable(i)
    }
    
    var _ = FromStrings[Settable]([]string{"1", "2"})
    
    // Suitable error message when the type parameter is provided (rather than inferred).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 21:01:45 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        assertThat(successCalls[0]).isEqualTo(1);
        assertThat(failureCalls[0]).isEqualTo(0);
      }
    
      public void testWildcardFuture() {
        SettableFuture<String> settable = SettableFuture.create();
        ListenableFuture<?> f = settable;
        FutureCallback<Object> callback =
            new FutureCallback<Object>() {
              @Override
              public void onSuccess(Object result) {}
    
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

        assertThat(successCalls[0]).isEqualTo(1);
        assertThat(failureCalls[0]).isEqualTo(0);
      }
    
      public void testWildcardFuture() {
        SettableFuture<String> settable = SettableFuture.create();
        ListenableFuture<?> f = settable;
        FutureCallback<Object> callback =
            new FutureCallback<Object>() {
              @Override
              public void onSuccess(Object result) {}
    
              @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 16:33:21 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/conversion/helper.go

    */
    
    package conversion
    
    import (
    	"fmt"
    	"reflect"
    )
    
    // EnforcePtr ensures that obj is a pointer of some sort. Returns a reflect.Value
    // of the dereferenced pointer, ensuring that it is settable/addressable.
    // Returns an error if this is not possible.
    func EnforcePtr(obj interface{}) (reflect.Value, error) {
    	v := reflect.ValueOf(obj)
    	if v.Kind() != reflect.Pointer {
    		if v.Kind() == reflect.Invalid {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/mod/README

    This directory holds Go modules served by a Go module proxy
    that runs on localhost during tests, both to make tests avoid
    requiring specific network servers and also to make them 
    significantly faster.
    
    A small go get'able test module can be added here by running
    
    	cd cmd/go/testdata
    	go run addmod.go path@vers
    
    where path and vers are the module path and version to add here.
    
    For interactive experimentation using this set of modules, run:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 12 20:46:50 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  6. pkg/proxy/iptables/proxier_test.go

    	dump, err := iptablestest.ParseIPTablesDump(ruleData)
    	if err != nil {
    		logger.Error(err, "error parsing iptables rules")
    		return -1
    	}
    
    	rules := 0
    	table, err := dump.GetTable(tableName)
    	if err != nil {
    		logger.Error(err, "can't find table", "table", tableName)
    		return -1
    	}
    
    	for _, c := range table.Chains {
    		rules += len(c.Rules)
    	}
    	return rules
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
  7. src/internal/reflectlite/export_test.go

    // The result is different from the zero value of the Value struct,
    // which represents no value at all.
    // For example, Zero(TypeOf(42)) returns a Value with Kind Int and value 0.
    // The returned value is neither addressable nor settable.
    func Zero(typ Type) Value {
    	if typ == nil {
    		panic("reflect: Zero(nil)")
    	}
    	t := typ.common()
    	fl := flag(t.Kind())
    	if t.IfaceIndir() {
    		return Value{t, unsafe_New(t), fl | flagIndir}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. pkg/kubemark/hollow_kubelet.go

    		KubeletConfiguration: *hk.KubeletConfiguration,
    	}, hk.KubeletDeps, false); err != nil {
    		klog.Fatalf("Failed to run HollowKubelet: %v. Exiting.", err)
    	}
    	select {}
    }
    
    // HollowKubeletOptions contains settable parameters for hollow kubelet.
    type HollowKubeletOptions struct {
    	NodeName            string
    	KubeletPort         int
    	KubeletReadOnlyPort int
    	MaxPods             int
    	PodsPerCore         int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:10:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ListsTest.java

          fail("transformed list iterator is addable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
        try {
          iterator.set("1");
          fail("transformed list iterator is settable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
      }
    
      public void testTransformIteratorRandomAccess() {
        List<Integer> fromList = Lists.newArrayList(SOME_LIST);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ListsTest.java

          fail("transformed list iterator is addable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
        try {
          iterator.set("1");
          fail("transformed list iterator is settable");
        } catch (UnsupportedOperationException | IllegalStateException expected) {
        }
      }
    
      public void testTransformIteratorRandomAccess() {
        List<Integer> fromList = Lists.newArrayList(SOME_LIST);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top