Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 200 for newRule (0.16 sec)

  1. src/os/exec/read3.go

    package main
    
    import (
    	"fmt"
    	"internal/poll"
    	"io"
    	"os"
    	"os/exec"
    	"os/exec/internal/fdtest"
    	"runtime"
    	"strings"
    )
    
    func main() {
    	fd3 := os.NewFile(3, "fd3")
    	defer fd3.Close()
    
    	bs, err := io.ReadAll(fd3)
    	if err != nil {
    		fmt.Printf("ReadAll from fd 3: %v\n", err)
    		os.Exit(1)
    	}
    
    	// Now verify that there are no other open fds.
    	// stdin == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 26 14:49:07 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-provider-plugins/src/test/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/PrecompiledScriptPluginTest.kt

                ).packageName,
                equalTo("org.acme")
            )
        }
    
        private
        fun scriptPlugin(fileName: String, text: String = "") = PrecompiledScriptPlugin(newFile(fileName, text))
    
        private
        fun firstNonBlankLineOf(expectedFile: File) =
            expectedFile.bufferedReader().useLines {
                it.first { it.isNotBlank() }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-provider-plugins/src/test/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/ExtractPrecompiledScriptPluginPluginsTest.kt

            )
        }
    
        private
        fun outputFile(fileName: String) = outputDir.resolve(fileName)
    
        private
        fun scriptPlugin(fileName: String, text: String) = PrecompiledScriptPlugin(newFile(fileName, text))
    
        private
        fun String.replacedBySpaces() = repeat(' ', length)
    }
    
    
    private
    fun repeat(char: Char, count: Int) = String(CharArray(count) { char })
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. src/go/types/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/os/exec/exec_windows_test.go

    	pipeSignal os.Signal = syscall.SIGPIPE
    )
    
    func init() {
    	registerHelperCommand("pipehandle", cmdPipeHandle)
    }
    
    func cmdPipeHandle(args ...string) {
    	handle, _ := strconv.ParseUint(args[0], 16, 64)
    	pipe := os.NewFile(uintptr(handle), "")
    	_, err := fmt.Fprint(pipe, args[1])
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "writing to pipe failed: %v\n", err)
    		os.Exit(1)
    	}
    	pipe.Close()
    }
    
    func TestPipePassing(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 23:07:55 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/syscalls_linux.go

    	if errno, ok := err.(syscall.Errno); ok {
    		if errno == syscall.ENOENT || errno == syscall.ESRCH {
    			return false, true, nil
    		}
    	}
    	if err != nil {
    		return false, false, err
    	}
    	status, err := io.ReadAll(os.NewFile(uintptr(fd), statusFile))
    	if err != nil {
    		return false, false, err
    	}
    	lines := bytes.Split(status, []byte{'\n'})
    	// Find the State line.
    	stateLineIdx := -1
    	for i, line := range lines {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/os/fifo_test.go

    		t.Fatal(err)
    	}
    	if err := syscall.SetNonblock(p[0], true); err != nil {
    		t.Fatal(err)
    	}
    	f := os.NewFile(uintptr(p[0]), "pipe")
    	nonblock, err := unix.IsNonblock(p[0])
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    	if !nonblock {
    		t.Error("pipe blocking after NewFile")
    	}
    	fd := f.Fd()
    	if fd != uintptr(p[0]) {
    		t.Errorf("Fd returned %d, want %d", fd, p[0])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. src/runtime/internal/wasitest/nonblock_test.go

    	if target != "wasip1/wasm" {
    		t.Skip()
    	}
    
    	switch os.Getenv("GOWASIRUNTIME") {
    	case "wasmer":
    		t.Skip("wasmer does not support non-blocking I/O")
    	}
    
    	for _, mode := range []string{"os.OpenFile", "os.NewFile"} {
    		t.Run(mode, func(t *testing.T) {
    			args := []string{"run", "./testdata/nonblock.go", mode}
    
    			fifos := make([]*fifo, 8)
    			for i := range fifos {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 29 15:35:27 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/TestKitIntegrationTest.kt

                            .build()
    
                    private
                    fun withBuildscript(script: String) =
                        temporaryFolder.newFile("build.gradle.kts").apply {
                            writeText(script)
                        }
    
                    @Rule @JvmField val temporaryFolder = TemporaryFolder()
                }
                """
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 10:30:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/cmd/internal/objfile/plan9obj.go

    	'T': true,
    	't': true,
    	'D': true,
    	'd': true,
    	'B': true,
    	'b': true,
    }
    
    type plan9File struct {
    	plan9 *plan9obj.File
    }
    
    func openPlan9(r io.ReaderAt) (rawFile, error) {
    	f, err := plan9obj.NewFile(r)
    	if err != nil {
    		return nil, err
    	}
    	return &plan9File{f}, nil
    }
    
    func (f *plan9File) symbols() ([]Sym, error) {
    	plan9Syms, err := f.plan9.Symbols()
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 21 01:01:44 UTC 2017
    - 3.5K bytes
    - Viewed (0)
Back to top