Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for GetTable (0.14 sec)

  1. pkg/util/iptables/testing/fake.go

    	f.hasRandomFully = can
    	return f
    }
    
    // EnsureChain is part of iptables.Interface
    func (f *FakeIPTables) EnsureChain(table iptables.Table, chain iptables.Chain) (bool, error) {
    	t, err := f.Dump.GetTable(table)
    	if err != nil {
    		return false, err
    	}
    	if c, _ := f.Dump.GetChain(table, chain); c != nil {
    		return true, nil
    	}
    	t.Chains = append(t.Chains, Chain{Name: chain})
    	return false, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/ClassDoc.groovy

            classContent.childNodes.each { Node n ->
                classSection << n
            }
    
            propertiesTable = getTable('Properties')
            propertiesSection = propertiesTable.parentNode
            methodsTable = getTable('Methods')
            methodsSection = methodsTable.parentNode
        }
    
        String getId() { return id }
    
        String getName() { return className }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  3. src/debug/gosym/pclntab_test.go

    	switch runtime.GOOS {
    	case "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "solaris", "illumos":
    		// OK.
    	default:
    		t.Skipf("skipping on non-ELF system %s", runtime.GOOS)
    	}
    }
    
    func getTable(t *testing.T) *Table {
    	f, tab := crack(os.Args[0], t)
    	f.Close()
    	return tab
    }
    
    func crack(file string, t *testing.T) (*elf.File, *Table) {
    	// Open self
    	f, err := elf.Open(file)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 17:17:44 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_edit.txt

    ! stdout .
    cmpenv go.mod $WORK/go.mod.goodfmt
    
    # go mod edit -module
    cd $WORK/m
    go mod init a.a/b/c
    go mod edit -module x.x/y/z
    cmpenv go.mod go.mod.edit
    
    # golang.org/issue/30513: don't require go-gettable module paths.
    cd $WORK/local
    go mod init foo
    go mod edit -module local-only -require=other-local@v1.0.0 -replace other-local@v1.0.0=./other
    cmpenv go.mod go.mod.edit
    
    # go mod edit -godebug
    cd $WORK/g
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. test/typeparam/settable.go

    Robert Griesemer <******@****.***> 1645769500 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:48:58 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. src/net/tcpsockopt_openbsd.go

    func setKeepAliveIdle(_ *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    	// OpenBSD has no user-settable per-socket TCP keepalive
    	// options.
    	return syscall.ENOPROTOOPT
    }
    
    func setKeepAliveInterval(_ *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    	// OpenBSD has no user-settable per-socket TCP keepalive
    	// options.
    	return syscall.ENOPROTOOPT
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 759 bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top