Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 201 for xargs (0.12 sec)

  1. tests/connpool_test.go

    func (c *wrapperTx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) {
    	c.conn.got = append(c.conn.got, query)
    	return c.Tx.ExecContext(ctx, query, args...)
    }
    
    func (c *wrapperTx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) {
    	c.conn.got = append(c.conn.got, query)
    	return c.Tx.QueryContext(ctx, query, args...)
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/plugin_test.go

    	}
    }
    
    func Test_dedupPorts(t *testing.T) {
    	type args struct {
    		ports []string
    	}
    	tests := []struct {
    		name string
    		args args
    		want []string
    	}{
    		{
    			name: "No duplicates",
    			args: args{ports: []string{"1234", "2345"}},
    			want: []string{"1234", "2345"},
    		},
    		{
    			name: "Sequential Duplicates",
    			args: args{ports: []string{"1234", "1234", "2345", "2345"}},
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  3. istioctl/pkg/dashboard/dashboard.go

    		Use:     "dashboard",
    		Aliases: []string{"dash", "d"},
    		Short:   "Access to Istio web UIs",
    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) != 0 {
    				return fmt.Errorf("unknown dashboard %q", args[0])
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			cmd.HelpFunc()(cmd, args)
    			return nil
    		},
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/manifest.go

    	}
    
    	mgcArgs := &ManifestGenerateArgs{}
    	mdcArgs := &manifestDiffArgs{}
    
    	args := &RootArgs{}
    
    	mgc := ManifestGenerateCmd(ctx, args, mgcArgs)
    	mdc := manifestDiffCmd(mdcArgs)
    	ic := InstallCmd(ctx)
    
    	addFlags(mc, args)
    	addFlags(mgc, args)
    	addFlags(mdc, args)
    
    	addManifestGenerateFlags(mgc, mgcArgs)
    	addManifestDiffFlags(mdc, mdcArgs)
    
    	mc.AddCommand(mgc)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. operator/cmd/mesh/profile-list.go

    	manifestsPath string
    }
    
    func addProfileListFlags(cmd *cobra.Command, args *profileListArgs) {
    	cmd.PersistentFlags().StringVarP(&args.manifestsPath, "charts", "", "", ChartsDeprecatedStr)
    	cmd.PersistentFlags().StringVarP(&args.manifestsPath, "manifests", "d", "", ManifestsFlagHelpStr)
    }
    
    func profileListCmd(plArgs *profileListArgs) *cobra.Command {
    	return &cobra.Command{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. internal/logger/target/testlogger/testlogger.go

    			}
    		case fatalMessage:
    			logf = func(format string, args ...any) {
    				fmt.Fprintf(os.Stderr, format+"\n", args...)
    			}
    			defer os.Exit(1)
    		default:
    			logf = func(format string, args ...any) {
    				fmt.Fprintf(os.Stdout, format+"\n", args...)
    			}
    		}
    	}
    
    	switch v := entry.(type) {
    	case log.Entry:
    		if v.Trace == nil {
    			logf("%s: %s", v.Level, v.Message)
    		} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 4K bytes
    - Viewed (0)
  7. operator/cmd/mesh/operator_test.go

    	kubeClients = MockKubernetesClients
    
    	for _, test := range tests {
    		t.Run("", func(t *testing.T) {
    			args := []string{"operator", "init", "--dry-run"}
    			if test.operatorNamespace != "" {
    				args = append(args, "--operatorNamespace", test.operatorNamespace)
    			}
    			if test.watchedNamespaces != "" {
    				args = append(args, "--watchedNamespaces", test.watchedNamespaces)
    			}
    
    			kubeClientFunc = func() (kube.CLIClient, error) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  8. istioctl/pkg/config/config_test.go

    )
    
    func TestConfigList(t *testing.T) {
    	cases := []testutil.TestCase{
    		//{ // case 0
    		//	Args:           strings.Split("get istioNamespace", " "),
    		//	ExpectedRegexp: regexp.MustCompile("Configure istioctl defaults"),
    		//	WantException:  false,
    		//},
    		{ // case 1
    			Args: strings.Split("list", " "),
    			ExpectedOutput: `FLAG                    VALUE            FROM
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/endtoend_test.go

    	ctxt.Bso = bufio.NewWriter(os.Stdout)
    	ctxt.IsAsm = true
    	defer ctxt.Bso.Flush()
    	failed := false
    	ctxt.DiagFunc = func(format string, args ...interface{}) {
    		failed = true
    		t.Errorf(format, args...)
    	}
    	pList.Firstpc, ok = parser.Parse()
    	if !ok || failed {
    		t.Errorf("asm: %s assembly failed", goarch)
    		return
    	}
    	output := strings.Split(testOut.String(), "\n")
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  10. tests/joins_test.go

    		t.Fatalf("wrong pet name")
    	}
    }
    
    func TestJoinArgsWithDB(t *testing.T) {
    	user := *GetUser("joins-args-db", Config{Pets: 2})
    	DB.Save(&user)
    
    	// test where
    	var user1 User
    	onQuery := DB.Where(&Pet{Name: "joins-args-db_pet_2"})
    	if err := DB.Joins("NamedPet", onQuery).Where("users.name = ?", user.Name).First(&user1).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
Back to top