Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 121 for TC (0.15 sec)

  1. callbacks/helper_test.go

    				Columns: []clause.Column{{Name: "active"}},
    				Values:  [][]interface{}{{true}},
    			},
    		},
    	}
    
    	for _, tc := range testCase {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input)
    			if !reflect.DeepEqual(actual, tc.expect) {
    				t.Errorf("expect %v got %v", tc.expect, actual)
    			}
    		})
    	}
    }
    
    func TestConvertSliceOfMapToValuesForCreate(t *testing.T) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 05 02:22:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  2. cmd/http-tracer.go

    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if !ok {
    			// Tracing is not enabled for this request
    			f.ServeHTTP(w, r)
    			return
    		}
    
    		tc.FuncName = getOpName(runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name())
    		tc.RequestRecorder.LogBody = logBody
    		tc.ResponseRecorder.LogAllBody = logBody
    		tc.ResponseRecorder.LogErrBody = true
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    }
    
    func TestIndexFunc(t *testing.T) {
    	for _, tc := range indexFuncTests {
    		first := IndexFunc([]byte(tc.in), tc.f.f)
    		if first != tc.first {
    			t.Errorf("IndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, first, tc.first)
    		}
    		last := LastIndexFunc([]byte(tc.in), tc.f.f)
    		if last != tc.last {
    			t.Errorf("LastIndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, last, tc.last)
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/DcerpcHandle.java

    
        /**
         * @param tc
         * 
         */
        public DcerpcHandle ( CIFSContext tc ) {
            this.transportContext = tc;
            this.binding = null;
        }
    
    
        /**
         * @param tc
         * @param binding
         */
        public DcerpcHandle ( CIFSContext tc, DcerpcBinding binding ) {
            this.transportContext = tc;
            this.binding = binding;
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jun 30 10:11:57 GMT 2019
    - 12.9K bytes
    - Viewed (0)
  5. internal/bucket/versioning/versioning_test.go

    		},
    	}
    
    	for i, tc := range testcases {
    		var v *Versioning
    		var err error
    		v, err = ParseConfig(strings.NewReader(tc.input))
    		if tc.err != err {
    			t.Fatalf("Test %d: expected %v but got %v", i+1, tc.err, err)
    		}
    		if err != nil {
    			if tc.err == nil {
    				t.Fatalf("Test %d: failed due to %v", i+1, err)
    			}
    		} else {
    			if err := v.Validate(); tc.err != err {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun May 08 05:06:44 GMT 2022
    - 8.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/Type1Message.java

         * environment.
         * 
         * @param tc
         *            context to use
         */
        public Type1Message ( CIFSContext tc ) {
            this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName());
        }
    
    
        /**
         * Creates a Type-1 message with the specified parameters.
         * 
         * @param tc
         *            context to use
         * @param flags
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Sep 02 12:55:08 GMT 2018
    - 7.8K bytes
    - Viewed (0)
  7. internal/bucket/encryption/bucket-sse-config_test.go

    			}
    			continue
    		}
    
    		if tc.keyID != "" && tc.keyID != ssec.KeyID() {
    			t.Errorf("Test case %d: Expected bucket encryption KeyID %s but got %s", i+1, tc.keyID, ssec.KeyID())
    		}
    
    		if expectedXML, err := xml.Marshal(tc.expectedConfig); err != nil || !bytes.Equal(expectedXML, []byte(tc.inputXML)) {
    			t.Errorf("Test case %d: Expected bucket encryption XML %s but got %s", i+1, string(expectedXML), tc.inputXML)
    		}
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Aug 16 18:28:30 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  8. cmd/bucket-encryption_test.go

    		},
    	}
    
    	for i, tc := range testCases {
    		_, err := validateBucketSSEConfig(bytes.NewReader([]byte(tc.inputXML)))
    		if tc.shouldPass && err != nil {
    			t.Fatalf("Test case %d: Expected to succeed but got %s", i+1, err)
    		}
    
    		if !tc.shouldPass {
    			if err == nil || err != nil && err.Error() != tc.expectedErr.Error() {
    				t.Fatalf("Test case %d: Expected %s but got %s", i+1, tc.expectedErr, err)
    			}
    		}
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 14 07:59:05 GMT 2021
    - 2.1K bytes
    - Viewed (0)
  9. internal/s3select/sql/stringfuncs_contrib_test.go

    		{"abcd", 999, 999, "", nil},
    		{"", 999, 999, "", nil},
    		{"测试abc", 1, 1, "测", nil},
    		{"测试abc", 5, 5, "c", nil},
    	}
    
    	for i, tc := range evalCases {
    		res, err := evalSQLSubstring(tc.s, tc.startIdx, tc.length)
    		if res != tc.resExpected || err != tc.errExpected {
    			t.Errorf("Eval Case %d failed: %v %v", i, res, err)
    		}
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  10. internal/bucket/replication/replication_test.go

    			},
    		},
    	}
    	for _, tc := range testCases {
    		tc := tc
    		cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig)))
    		if err != nil {
    			t.Fatalf("Got unexpected error: %v", err)
    		}
    		got := cfg.FilterActionableRules(ObjectOpts{Name: tc.prefix})
    		if len(got) != len(tc.ExpectedRules) {
    			t.Fatalf("Expected matching number of actionable rules: `%v`, got: `%v`", tc.ExpectedRules, got)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
Back to top