Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 538 for args_ (0.04 sec)

  1. src/cmd/compile/internal/types2/format.go

    			buf.WriteByte(']')
    			arg = buf.String()
    		}
    		args[i] = arg
    	}
    	return fmt.Sprintf(format, args...)
    }
    
    // check may be nil.
    func (check *Checker) sprintf(format string, args ...any) string {
    	var qf Qualifier
    	if check != nil {
    		qf = check.qualifier
    	}
    	return sprintf(qf, false, format, args...)
    }
    
    func (check *Checker) trace(pos syntax.Pos, format string, args ...any) {
    	fmt.Printf("%s:\t%s%s\n",
    		pos,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. internal/event/target/nsq.go

    }
    
    func (target *NSQTarget) initNSQ() error {
    	args := target.args
    
    	config := nsq.NewConfig()
    	if args.TLS.Enable {
    		config.TlsV1 = true
    		config.TlsConfig = &tls.Config{
    			InsecureSkipVerify: args.TLS.SkipVerify,
    		}
    	}
    	target.config = config
    
    	producer, err := nsq.NewProducer(args.NSQDAddress.String(), config)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/addons/dns/dns_test.go

    			}
    		})
    	}
    }
    
    func TestCoreDNSAddon(t *testing.T) {
    	type args struct {
    		cfg           *kubeadmapi.ClusterConfiguration
    		client        clientset.Interface
    		printManifest bool
    	}
    	tests := []struct {
    		name    string
    		args    args
    		wantOut string
    		wantErr bool
    	}{
    		{
    			name: "cfg is empty",
    			args: args{
    				cfg:           &kubeadmapi.ClusterConfiguration{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. pkg/slices/slices_test.go

    }
    
    func TestReference(t *testing.T) {
    	type args[E any] struct {
    		s []E
    	}
    	type testCase[E any] struct {
    		name string
    		args args[E]
    		want []*E
    	}
    	stringTests := []testCase[string]{
    		{
    			name: "empty slice",
    			args: args[string]{
    				[]string{},
    			},
    			want: []*string{},
    		},
    		{
    			name: "slice with 1 element",
    			args: args[string]{
    				[]string{s1},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/JavaRecordCodec.kt

            val fields = clazz.relevantFields
    
            val args = readFields(fields)
            val types = fields.map { it.type }.toTypedArray()
            return try {
                clazz.getConstructor(*types).newInstance(*args.toTypedArray())
            } catch (ex: Exception) {
                throw IllegalStateException("Failed to create instance of ${clazz.name} with args $args", ex)
            }
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. tests/integration/pilot/piggyback_test.go

    					argsToTest := []struct {
    						args []string
    					}{
    						{[]string{"x", "proxy-status", "--plaintext", "--xds-address", pf.Address()}},
    						{[]string{"proxy-status", "--plaintext", "--xds-address", pf.Address()}},
    					}
    					for _, args := range argsToTest {
    						istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: t.Clusters().Default()})
    						output, _, err := istioCtl.Invoke(args.args)
    						if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    	testCases := []struct {
    		name          string
    		args          []string
    		expectedError bool
    	}{
    		{
    			name:          "valid: valid manifest path",
    			args:          []string{apiServerManifest, controllerManagerManifest, schedulerManifest},
    			expectedError: false,
    		},
    		{
    			name:          "invalid: one is empty path",
    			args:          []string{apiServerManifest, controllerManagerManifest, ""},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/internal/trace/internal/oldtrace/order.go

    		return
    	case EvGoUnblock, EvGoSysExit:
    		g = ev.Args[0]
    		init = gState{ev.Args[1], gWaiting}
    		next = gState{ev.Args[1] + 1, gRunnable}
    		return
    	case EvGoUnblockLocal, EvGoSysExitLocal:
    		g = ev.Args[0]
    		init = gState{noseq, gWaiting}
    		next = gState{seqinc, gRunnable}
    		return
    	case EvGCStart:
    		g = garbage
    		init = gState{ev.Args[0], gDead}
    		next = gState{ev.Args[0] + 1, gDead}
    		return
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. pkg/apis/core/v1/helper/helpers_test.go

    		}
    	}
    }
    
    func TestMatchTopologySelectorTerms(t *testing.T) {
    	type args struct {
    		topologySelectorTerms []v1.TopologySelectorTerm
    		labels                labels.Set
    	}
    
    	tests := []struct {
    		name string
    		args args
    		want bool
    	}{
    		{
    			name: "nil term list",
    			args: args{
    				topologySelectorTerms: nil,
    				labels:                nil,
    			},
    			want: true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 23:03:54 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecIntegrationTest.groovy

            """
    
            when:
            run("run", "--args", "2")
    
            then:
            executedAndNotSkipped ":run"
            assertOutputFileIs("2\n")
    
            when:
            run("run", "--args", "2")
    
            then:
            skipped ":run"
    
            when:
            file("out.txt").delete()
    
            and:
            run("run", "--args", "2")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top