Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 239 for tpath (0.05 sec)

  1. src/cmd/cover/cfg_test.go

    	"encoding/json"
    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func writeFile(t *testing.T, path string, contents []byte) {
    	if err := os.WriteFile(path, contents, 0666); err != nil {
    		t.Fatalf("os.WriteFile(%s) failed: %v", path, err)
    	}
    }
    
    func writePkgConfig(t *testing.T, outdir, tag, ppath, pname string, gran string, mpath string) string {
    	incfg := filepath.Join(outdir, tag+"incfg.txt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/version.txt

    stdout '^fortune.exe: .+'
    go version -m fortune.exe
    stdout -buildmode=exe
    stdout '^\tpath\trsc.io/fortune'
    stdout '^\tmod\trsc.io/fortune\tv1.0.0'
    
    # Check the build info of a binary built from $GOROOT/src/cmd
    go build -o test2json.exe cmd/test2json
    go version -m test2json.exe
    stdout -buildmode=exe
    stdout '^test2json.exe: .+'
    stdout '^\tpath\tcmd/test2json$'
    ! stdout 'mod[^e]'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 14:52:04 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. operator/pkg/translate/yaml_tree.go

    		return "", err
    	}
    
    	for inPath, translation := range translations {
    		path := util.PathFromString(inPath)
    		node, found, err := tpath.Find(inTree, path)
    		if err != nil {
    			return "", err
    		}
    		if !found {
    			continue
    		}
    
    		if err := tpath.MergeNode(outTree, util.PathFromString(translation), node); err != nil {
    			return "", err
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  4. operator/pkg/translate/translate_value.go

    			return err
    		}
    	}
    	return nil
    }
    
    // isEnablementPath is helper function to check whether paths represent enablement of components in values.yaml
    func (t *ReverseTranslator) isEnablementPath(path util.Path) bool {
    	if len(path) < 2 || path[len(path)-1] != "enabled" {
    		return false
    	}
    
    	pf := path[:len(path)-1].String()
    	if specialComponentPath[pf] {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 03:52:24 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. operator/pkg/translate/translate_common.go

    // valuePath points to component path in the values tree.
    func IsComponentEnabledFromValue(cn name.ComponentName, valueSpec map[string]any) (enabled bool, pathExist bool, err error) {
    	t := NewTranslator()
    	cnMap, ok := t.ComponentMaps[cn]
    	if !ok {
    		return false, false, nil
    	}
    	valuePath := cnMap.ToHelmValuesTreeRoot
    	enabledPath := valuePath + ".enabled"
    	enableNodeI, found, err := tpath.Find(valueSpec, util.ToYAMLPath(enabledPath))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. operator/cmd/mesh/profile-dump.go

    	if err != nil {
    		return err
    	}
    	y, err = tpath.GetConfigSubtree(y, "spec")
    	if err != nil {
    		return err
    	}
    
    	if pdArgs.configPath == "" {
    		if y, err = prependHeader(y); err != nil {
    			return err
    		}
    	} else {
    		if y, err = tpath.GetConfigSubtree(y, pdArgs.configPath); err != nil {
    			return err
    		}
    	}
    
    	var output string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 01:18:49 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_list_command_line_arguments.txt

    go list -f '{{.Module}}' a.go
    stdout '^<nil>$'
    
    [short] skip
    
    # check that the version of command-line-arguments doesn't include a module
    go build -o a.exe a.go
    go version -m a.exe
    stdout '^\tpath\tcommand-line-arguments$'
    stdout '^\tdep\ta\t\(devel\)\t$'
    ! stdout mod[^e]
    
    -- a/go.mod --
    module a
    go 1.17
    -- a/a.go --
    package main
    
    import "a/dep"
    
    func main() {
        dep.D()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 20:25:35 UTC 2022
    - 626 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/version_cshared.txt

    [!buildmode:c-shared] stop
    
    env GO111MODULE=on
    
    go get rsc.io/fortune
    go build -buildmode=c-shared -o external.so rsc.io/fortune
    go version external.so
    stdout '^external.so: .+'
    go version -m external.so
    stdout '^\tpath\trsc.io/fortune'
    stdout '^\tmod\trsc.io/fortune\tv1.0.0'
    
    -- go.mod --
    module m
    
    -- empty.go --
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 14:52:04 UTC 2024
    - 416 bytes
    - Viewed (0)
  9. operator/cmd/mesh/test-util_test.go

    // mustGetValueAtPath returns the value at the given path in the unstructured tree t. Fails if the path is not found
    // in the tree.
    func mustGetValueAtPath(g *WithT, t map[string]any, path string) any {
    	got, f, err := tpath.GetPathContext(t, util.PathFromString(path), false)
    	g.Expect(err).Should(BeNil(), "path %s should exist (%s)", path, err)
    	g.Expect(f).Should(BeTrue(), "path %s should exist", path)
    	return got.Node
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  10. operator/pkg/patch/patch.go

    	}
    	for _, p := range patches {
    		v := p.Value.AsInterface()
    		if strings.TrimSpace(p.Path) == "" {
    			scope.Warnf("value=%s has empty path, skip\n", v)
    			continue
    		}
    		scope.Debugf("applying path=%s, value=%s\n", p.Path, v)
    		inc, _, err := tpath.GetPathContext(bo, util.PathFromString(p.Path), true)
    		if err != nil {
    			errs = util.AppendErr(errs, err)
    			metrics.ManifestPatchErrorTotal.Increment()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top