Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for runFmt (0.1 sec)

  1. src/cmd/go/internal/fmtcmd/fmt.go

    )
    
    func init() {
    	base.AddBuildFlagsNX(&CmdFmt.Flag)
    	base.AddChdirFlag(&CmdFmt.Flag)
    	base.AddModFlag(&CmdFmt.Flag)
    	base.AddModCommonFlags(&CmdFmt.Flag)
    }
    
    var CmdFmt = &base.Command{
    	Run:       runFmt,
    	UsageLine: "go fmt [-n] [-x] [packages]",
    	Short:     "gofmt (reformat) package sources",
    	Long: `
    Fmt runs the command 'gofmt -l -w' on the packages named
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 12:16:35 UTC 2022
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/runlit.cfg.py

    from lit.llvm import llvm_config
    from lit.llvm.subst import ToolSubst
    
    # Lint for undefined variables is disabled as config is not defined inside this
    # file, instead config is injected by way of evaluating runlit.cfg.py from
    # runlit.site.cfg.py which in turn is evaluated by lit.py. The structure is
    # common for lit tests and intended to only persist temporarily (b/136126535).
    # pylint: disable=undefined-variable
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 18:52:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/cover.go

    func BuildActionCoverMetaFile(runAct *Action) (string, error) {
    	p := runAct.Package
    	for i := range runAct.Deps {
    		pred := runAct.Deps[i]
    		if pred.Mode != "build" || pred.Package == nil {
    			continue
    		}
    		if pred.Package.ImportPath == p.ImportPath {
    			metaFile := pred.Objdir + covcmd.MetaFileForPackage(p.ImportPath)
    			f, err := os.Open(metaFile)
    			if err != nil {
    				return "", err
    			}
    			defer f.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/runlit.site.cfg.py

    # Let the main config do the real work.
    lit_config.load_config(
        config,
        os.path.join(
            os.path.join(real_test_srcdir, os.environ['TEST_WORKSPACE'],
                         'tensorflow/compiler/mlir/runlit.cfg.py')))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 21:33:52 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. src/cmd/internal/bootstrap_test/experiment_toolid_test.go

    	}
    
    	// Build a package in a mode not handled by the make script.
    	runCmd(t, gorootSrc, env, goCmdPath, "build", "-race", "archive/tar")
    
    	// Rebuild the toolchain with GOEXPERIMENT.
    	env = append(env, "GOEXPERIMENT=fieldtrack")
    	runCmd(t, gorootSrc, env, makeScriptPath)
    
    	// Verify compiler version string.
    	gotVersion = bytes.TrimSpace(runCmd(t, gorootSrc, env, goCmdPath, "tool", "compile", "-V=full"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 18:47:14 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/test/cmd/join_test.go

    limitations under the License.
    */
    
    package kubeadm
    
    import "testing"
    
    // kubeadmReset executes "kubeadm reset" and restarts kubelet.
    func kubeadmReset() error {
    	kubeadmPath := getKubeadmPath()
    	_, _, _, err := RunCmd(kubeadmPath, "reset")
    	return err
    }
    
    func TestCmdJoinConfig(t *testing.T) {
    	var initTest = []struct {
    		name     string
    		args     string
    		expected bool
    	}{
    		{"config", "--config=foobar", false},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 08 21:47:16 UTC 2020
    - 6.6K bytes
    - Viewed (0)
  7. tools/bug-report/pkg/content/content.go

    		cmdStr += " -o yaml"
    	}
    	out, err := p.Runner.RunCmd(cmdStr, "", p.KubeConfig, p.KubeContext, p.DryRun)
    	return map[string]string{
    		"secrets": out,
    	}, err
    }
    
    // GetCRs returns CR contents for all CRDs in the cluster.
    func GetCRs(p *Params) (map[string]string, error) {
    	crds, err := getCRDList(p)
    	if err != nil {
    		return nil, err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 05 18:47:53 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  8. cmd/kubeadm/test/cmd/token_test.go

    import (
    	"regexp"
    	"testing"
    )
    
    const (
    	TokenExpectedRegex = "^\\S{6}\\.\\S{16}\n$"
    )
    
    func TestCmdTokenGenerate(t *testing.T) {
    	kubeadmPath := getKubeadmPath()
    	stdout, _, _, err := RunCmd(kubeadmPath, "token", "generate")
    	if err != nil {
    		t.Fatalf("'kubeadm token generate' exited uncleanly: %v", err)
    	}
    
    	matched, err := regexp.MatchString(TokenExpectedRegex, stdout)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 08 21:47:16 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/internal/testdir/testdir_test.go

    			names = append(names, name)
    		}
    	}
    	sort.Strings(names)
    	return names
    }
    
    type runCmd func(...string) ([]byte, error)
    
    func compileFile(runcmd runCmd, longname string, flags []string) (out []byte, err error) {
    	cmd := []string{goTool, "tool", "compile", "-e", "-p=p", "-importcfg=" + stdlibImportcfgFile()}
    	cmd = append(cmd, flags...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  10. src/net/net_windows_test.go

    	}
    	return addrs
    }
    
    func TestInterfaceAddrsWithNetsh(t *testing.T) {
    	checkNetsh(t)
    
    	outIPV4, err := runCmd("netsh", "interface", "ipv4", "show", "address")
    	if err != nil {
    		t.Fatal(err)
    	}
    	outIPV6, err := runCmd("netsh", "interface", "ipv6", "show", "address", "level=verbose")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	ift, err := Interfaces()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top