Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,780 for testy (0.15 sec)

  1. operator/cmd/mesh/operator_test.go

    	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) {
    				return nil, nil
    			}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  2. internal/event/target/nsq_test.go

    			SkipVerify bool
    		}
    	}
    	tests := []struct {
    		name    string
    		fields  fields
    		wantErr bool
    	}{
    		{
    			name: "test1_missing_topic",
    			fields: fields{
    				Enable: true,
    				NSQDAddress: xnet.Host{
    					Name:      "127.0.0.1",
    					Port:      4150,
    					IsPortSet: true,
    				},
    				Topic: "",
    			},
    			wantErr: true,
    		},
    		{
    			name: "test2_disabled",
    			fields: fields{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  3. callbacks/helper_test.go

    	"reflect"
    	"testing"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    )
    
    func TestLoadOrStoreVisitMap(t *testing.T) {
    	var vm visitMap
    	var loaded bool
    	type testM struct {
    		Name string
    	}
    
    	t1 := testM{Name: "t1"}
    	t2 := testM{Name: "t2"}
    	t3 := testM{Name: "t3"}
    
    	vm = make(visitMap)
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded {
    		t.Fatalf("loaded should be false")
    	}
    
    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)
  4. callbacks/visit_map_test.go

    package callbacks
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestLoadOrStoreVisitMap(t *testing.T) {
    	var vm visitMap
    	var loaded bool
    	type testM struct {
    		Name string
    	}
    
    	t1 := testM{Name: "t1"}
    	t2 := testM{Name: "t2"}
    	t3 := testM{Name: "t3"}
    
    	vm = make(visitMap)
    	if loaded = loadOrStoreVisitMap(&vm, reflect.ValueOf(&t1)); loaded {
    		t.Fatalf("loaded should be false")
    	}
    
    Go
    - Registered: Sun Feb 25 09:35:10 GMT 2024
    - Last Modified: Thu Mar 17 15:53:31 GMT 2022
    - 780 bytes
    - Viewed (0)
  5. tests/tests_test.go

    package tests_test
    
    import (
    	"log"
    	"math/rand"
    	"os"
    	"path/filepath"
    	"time"
    
    	"gorm.io/driver/mysql"
    	"gorm.io/driver/postgres"
    	"gorm.io/driver/sqlite"
    	"gorm.io/driver/sqlserver"
    	"gorm.io/gorm"
    	"gorm.io/gorm/logger"
    	. "gorm.io/gorm/utils/tests"
    )
    
    var DB *gorm.DB
    var (
    	mysqlDSN     = "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local"
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  6. cmd/site-replication_test.go

    			[]string{},
    		},
    		// Test3: not currently under site replication.
    		{
    			[]madmin.PeerInfo{},
    			set.CreateStringSet(),
    			set.CreateStringSet("dep1", "dep2", "dep3", "dep4"),
    			[]string{},
    		},
    	}
    
    	for i, tc := range testCases {
    		names := getMissingSiteNames(tc.oldDepIDs, tc.newDepIDs, tc.currSites)
    		if len(names) != len(tc.expNames) {
    			t.Errorf("Test %d: Expected `%v`, got `%v`", i+1, tc.expNames, names)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  7. .github/workflows/tests.yml

        - name: Tests
          run: GITHUB_ACTION=true GORM_DIALECT=postgres GORM_DSN="user=gorm password=gorm dbname=gorm host=localhost port=9920 sslmode=disable TimeZone=Asia/Shanghai" ./tests/tests_all.sh
    
      sqlserver:
        strategy:
          matrix:
            go: ['1.21', '1.20', '1.19']
            platform: [ubuntu-latest] # can not run test in macOS and windows
    Others
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Jan 29 02:34:20 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. istioctl/pkg/authz/analyzer_test.go

    	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    
    	"istio.io/istio/istioctl/pkg/util/configdump"
    )
    
    func TestNewAnalyzer(t *testing.T) {
    	tests := []struct {
    		name    string
    		input   *configdump.Wrapper
    		wantErr error
    	}{
    		{
    			name: "Test1",
    			input: &configdump.Wrapper{
    				ConfigDump: &envoy_admin.ConfigDump{
    					Configs: []*anypb.Any{
    						{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/async-tests.md

    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    The file `main.py` would have:
    
    ```Python
    {!../../../docs_src/async_tests/main.py!}
    ```
    
    The file `test_main.py` would have the tests for `main.py`, it could look like this now:
    
    ```Python
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ## Run it
    
    You can run your tests as usual via:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. .cm/lacks_tests.cm

    on:
      - pr_created
      - commit
      - comment_added
    
    automations:
    
      # If a PR contains non-trivial source changes and no tests, add a comment to the PR
      lacks_tests:
        if:
          - {{ ('lacks_tests' | isEnabledAutomation(pr)) }}
          - {{ includes_src_changes }}
          - {{ not (includes_test_changes) }}
          - {{ not (is_docs_only_change) }}
          - {{ not (is_formatting_only_change) }}
        run:
          - action: add-label@v1
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 2.4K bytes
    - Viewed (0)
Back to top