Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 153 for Jest (0.46 sec)

  1. internal/event/name_test.go

    		data, err := xml.Marshal(testCase.name)
    		expectErr := (err != nil)
    
    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(data, testCase.expectedData) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, string(testCase.expectedData), string(data))
    			}
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. cni/pkg/util/podutil_test.go

    				Name:      "test",
    				Namespace: "test",
    				Labels:    ambientEnabledLabel,
    			},
    		}
    
    		unlabelledPod = &corev1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "test",
    				Namespace: "test",
    			},
    		}
    
    		podWithSidecar = &corev1.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name:        "test",
    				Namespace:   "test",
    				Annotations: sidecarStatusAnnotation,
    			},
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. .github/workflows/test-redistribute.yml

    name: Test Redistribute
    
    on:
      push:
        branches:
          - master
      pull_request:
        types:
          - opened
          - synchronize
    
    jobs:
      test-redistribute:
        runs-on: ubuntu-latest
        strategy:
          matrix:
            package:
              - fastapi
              - fastapi-slim
        steps:
          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. tensorflow/c/c_test.c

    // A create function. This will never actually get called in this test, it's
    // just nice to know that it compiles.
    void* create(TF_OpKernelConstruction* ctx) {
      TF_DataType type;
      TF_Status* s = TF_NewStatus();
      TF_OpKernelConstruction_GetAttrType(ctx, "foobar", &type, s);
      TF_DeleteStatus(s);
      return NULL;
    }
    
    // A compute function. This will never actually get called in this test, it's
    // just nice to know that it compiles.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  5. cni/pkg/iptables/iptables_test.go

    // limitations under the License.
    
    package iptables
    
    import (
    	"net/netip"
    	"path/filepath"
    	"strings"
    	"testing"
    
    	testutil "istio.io/istio/pilot/test/util"
    	dep "istio.io/istio/tools/istio-iptables/pkg/dependencies"
    )
    
    func TestIptables(t *testing.T) {
    	cases := []struct {
    		name   string
    		config func(cfg *Config)
    	}{
    		{
    			"default",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. istioctl/pkg/injector/injector-list_test.go

    					Annotations: map[string]string{
    						annotation.SidecarStatus.Name: `{"revision": "test-anno"}`,
    					},
    				},
    			},
    			expectedRevision: "test-anno",
    		},
    		{
    			name: "has both rev label and annotation, use label",
    			pod: &corev1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Labels: map[string]string{
    						label.IoIstioRev.Name: "test-label", // don't care about the label
    					},
    					Annotations: map[string]string{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/delmarker-expiration_test.go

    		},
    	}
    
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("TestDelMarker-%d", i), func(t *testing.T) {
    			var dexp DelMarkerExpiration
    			var fail bool
    			err := xml.Unmarshal([]byte(test.xml), &dexp)
    			if test.err == nil {
    				if err != nil {
    					fail = true
    				}
    			} else {
    				if err == nil {
    					fail = true
    				}
    				if test.err.Error() != err.Error() {
    					fail = true
    				}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  8. cmd/data-scanner_test.go

    			want:      lifecycle.DelMarkerDeleteAllVersionsAction,
    		},
    	}
    
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("TestEvalAction-%d", i), func(t *testing.T) {
    			if got := evalActionFromLifecycle(context.TODO(), test.ilm, test.retention, nil, test.obj); got.Action != test.want {
    				t.Fatalf("Expected %v but got %v", test.want, got)
    			}
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. cmd/erasure-metadata_test.go

    		},
    	}
    
    	for _, test := range tests {
    		test := test
    		t.Run("", func(t *testing.T) {
    			fi, err := findFileInfoInQuorum(context.Background(), test.fis, test.modTime, "", test.expectedQuorum)
    			_, ok1 := err.(InsufficientReadQuorum)
    			_, ok2 := test.expectedErr.(InsufficientReadQuorum)
    			if ok1 != ok2 {
    				t.Errorf("Expected %s, got %s", test.expectedErr, err)
    			}
    			if test.succmodTimes != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/rule_test.go

                                <Status>Enabled</Status>
    	                    </Rule>`,
    			expectedErr: errInvalidRuleDelMarkerExpiration,
    		},
    	}
    
    	for i, tc := range invalidTestCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			var rule Rule
    			err := xml.Unmarshal([]byte(tc.inputXML), &rule)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			if err := rule.Validate(); err != tc.expectedErr {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 4.9K bytes
    - Viewed (0)
Back to top