Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 200 for newRule (0.25 sec)

  1. src/go/types/tuple.go

    // Tuples are used as components of signatures and to represent the type of multiple
    // assignments; they are not first class types of Go.
    type Tuple struct {
    	vars []*Var
    }
    
    // NewTuple returns a new tuple for the given variables.
    func NewTuple(x ...*Var) *Tuple {
    	if len(x) > 0 {
    		return &Tuple{vars: x}
    	}
    	return nil
    }
    
    // Len returns the number variables of tuple t.
    func (t *Tuple) Len() int {
    	if t != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. common/scripts/fix_copyright_banner.sh

    WD=$(dirname "$0")
    WD=$(cd "$WD"; pwd)
    
    for fn in "$@"; do
      if ! grep -L -q -e "Apache License, Version 2" -e "Copyright" "${fn}"; then
        if [[ "${fn}" == *.go || "${fn}" == *.rs ]]; then
          newfile=$(cat "${WD}/copyright-banner-go.txt" "${fn}")
          echo "${newfile}" > "${fn}"
          echo "Fixing license: ${fn}"
        else
          echo "Cannot fix license: ${fn}. Unknown file type"
        fi
      fi
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 17 04:35:57 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. src/os/os_unix_test.go

    func TestNewFileNonBlock(t *testing.T) {
    	t.Parallel()
    	newFileTest(t, false)
    }
    
    func TestNewFileInvalid(t *testing.T) {
    	t.Parallel()
    	const negOne = ^uintptr(0)
    	if f := NewFile(negOne, "invalid"); f != nil {
    		t.Errorf("NewFile(-1) got %v want nil", f)
    	}
    }
    
    func TestSplitPath(t *testing.T) {
    	t.Parallel()
    	for _, tt := range []struct{ path, wantDir, wantBase string }{
    		{"a", ".", "a"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. src/syscall/exec_windows_test.go

    		{`C:\Program Files (x32)\Common\`, `"C:\Program Files (x32)\Common\\"`},
    		{`C:\Users\Игорь\`, `C:\Users\Игорь\`},
    		{`Андрей\file`, `Андрей\file`},
    		{`C:\Windows\temp`, `C:\Windows\temp`},
    		{`c:\temp\newfile`, `c:\temp\newfile`},
    		{`\\?\C:\Windows`, `\\?\C:\Windows`},
    		{`\\?\`, `\\?\`},
    		{`\\.\C:\Windows\`, `\\.\C:\Windows\`},
    		{`\\server\share\file`, `\\server\share\file`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. build-logic/performance-testing/src/test/kotlin/gradlebuild/performance/PerformanceTestPluginTest.kt

            assert(
                !allTestsWereSkipped(junitXmlWith(tests = "2", skipped = "1"))
            )
        }
    
        private
        fun junitXmlWith(tests: String, skipped: String): File =
            tempFolder.newFile("junit-$tests-$skipped.xml").apply {
                writeText(
                    """
                    <?xml version="1.0" encoding="UTF-8"?>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 1002 bytes
    - Viewed (0)
  6. pkg/registry/rbac/role/strategy.go

    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (strategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newRole := obj.(*rbac.Role)
    	oldRole := old.(*rbac.Role)
    
    	_, _ = newRole, oldRole
    }
    
    // Validate validates a new Role. Validation must check for a correct signature.
    func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 18 14:42:36 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  7. src/net/unixsock_readmsg_test.go

    	fds, err := syscall.Socketpair(syscall.AF_LOCAL, syscall.SOCK_STREAM, 0)
    	if err != nil {
    		t.Fatalf("Socketpair: %v", err)
    	}
    
    	writeFile := os.NewFile(uintptr(fds[0]), "write-socket")
    	defer writeFile.Close()
    	readFile := os.NewFile(uintptr(fds[1]), "read-socket")
    	defer readFile.Close()
    
    	cw, err := FileConn(writeFile)
    	if err != nil {
    		t.Fatalf("FileConn: %v", err)
    	}
    	defer cw.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 09:15:25 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. src/cmd/internal/archive/archive_test.go

    		case "darwin", "ios":
    			mf, err := macho.NewFile(obj)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if mf.Symtab == nil {
    				continue
    			}
    			for _, s := range mf.Symtab.Syms {
    				switch s.Name {
    				case c1:
    					found1 = true
    				case c2:
    					found2 = true
    				}
    			}
    		case "windows":
    			pf, err := pe.NewFile(obj)
    			if err != nil {
    				t.Fatal(err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 19:27:33 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. src/internal/testpty/pty_cgo.go

    		C.close(m)
    		return nil, "", ptyError("grantpt", err)
    	}
    	if res, err := C.unlockpt(m); res < 0 {
    		C.close(m)
    		return nil, "", ptyError("unlockpt", err)
    	}
    	processTTY = C.GoString(C.ptsname(m))
    	return os.NewFile(uintptr(m), "pty"), processTTY, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 25 18:38:54 UTC 2023
    - 840 bytes
    - Viewed (0)
  10. src/debug/buildinfo/buildinfo.go

    	}
    
    	var x exe
    	switch {
    	case bytes.HasPrefix(ident, []byte("\x7FELF")):
    		f, err := elf.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &elfExe{f}
    	case bytes.HasPrefix(ident, []byte("MZ")):
    		f, err := pe.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &peExe{f}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top