Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for devNull (0.12 sec)

  1. cmd/peer-rest-server.go

    		}
    	}
    }
    
    // DevNull - everything goes to io.Discard
    func (s *peerRESTServer) DevNull(w http.ResponseWriter, r *http.Request) {
    	if !s.IsValid(w, r) {
    		s.writeErrorResponse(w, errors.New("invalid request"))
    		return
    	}
    
    	globalNetPerfRX.Connect()
    	defer globalNetPerfRX.Disconnect()
    
    	connectTime := time.Now()
    	ctx := newContext(r, w, "DevNull")
    	for {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. configure.py

      """Get the python site package paths."""
      python_paths = []
      if environ_cp.get('PYTHONPATH'):
        python_paths = environ_cp.get('PYTHONPATH').split(':')
      try:
        stderr = open(os.devnull, 'wb')
        library_paths = run_shell([
            python_bin_path, '-c',
            'import site; print("\\n".join(site.getsitepackages()))'
        ],
                                  stderr=stderr).split('\n')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  3. src/html/template/escape_test.go

    		t.Errorf(`Expected "hello"; got %q`, buf.String())
    	}
    }
    
    // This is a test for issue 3272.
    func TestEmptyTemplateHTML(t *testing.T) {
    	page := Must(New("page").ParseFiles(os.DevNull))
    	if err := page.ExecuteTemplate(os.Stdout, "page", "nothing"); err == nil {
    		t.Fatal("expected error")
    	}
    }
    
    type Issue7379 int
    
    func (Issue7379) SomeMethod(x int) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
  4. src/cmd/dist/test.go

    	build, run, pkgs, testFlags, setupCmd := opts.buildArgs(t)
    
    	// Combine the flags.
    	args := append([]string{"test"}, build...)
    	if t.compileOnly {
    		args = append(args, "-c", "-o", os.DevNull)
    	} else {
    		args = append(args, run...)
    	}
    	args = append(args, pkgs...)
    	if !t.compileOnly {
    		args = append(args, testFlags...)
    	}
    
    	cmd = exec.Command(gorootBinGo, args...)
    	setupCmd(cmd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. src/cmd/go/go_test.go

    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    	tg.tempFile("a.go", `package main; import "C"; func main() {}`)
    	tg.run("build", "-ldflags", "-v", "-o", os.DevNull, tg.path("a.go"))
    	// Find line that has "host link:" in linker output.
    	stderr := tg.getStderr()
    	var hostLinkLine string
    	for _, line := range strings.Split(stderr, "\n") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/test.go

    			testODir = true
    		}
    	}
    
    	if len(pkgs) > 1 && (testC || testO != "") && !base.IsNull(testO) {
    		if testO != "" && !testODir {
    			base.Fatalf("with multiple packages, -o must refer to a directory or %s", os.DevNull)
    		}
    
    		pkgsForBinary := map[string][]*load.Package{}
    
    		for _, p := range pkgs {
    			testBinary := testBinaryName(p)
    			pkgsForBinary[testBinary] = append(pkgsForBinary[testBinary], p)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  7. src/os/os_test.go

    	if err != nil {
    		t.Fatalf("Stat(%s): %v", devNullName, err)
    	}
    	testDevNullFileInfo(t, "Stat", devNullName, fi)
    }
    
    func TestDevNullFile(t *testing.T) {
    	t.Parallel()
    
    	testDevNullFile(t, DevNull)
    	if runtime.GOOS == "windows" {
    		testDevNullFile(t, "./nul")
    		testDevNullFile(t, "//./nul")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top