Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for teston (0.19 sec)

  1. istioctl/pkg/config/config_test.go

    // limitations under the License.
    
    package config
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    
    	"github.com/spf13/viper"
    
    	"istio.io/istio/istioctl/pkg/util/testutil"
    	"istio.io/istio/pkg/config/constants"
    )
    
    func TestConfigList(t *testing.T) {
    	cases := []testutil.TestCase{
    		//{ // case 0
    		//	Args:           strings.Split("get istioNamespace", " "),
    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)
  2. internal/config/config_test.go

    		},
    	}
    	for _, test := range tests {
    		test := test
    		t.Run("", func(t *testing.T) {
    			gotFields := kvFields(test.input, test.keys)
    			if len(gotFields) != len(test.expectedFields) {
    				t.Errorf("Expected keys %d, found %d", len(test.expectedFields), len(gotFields))
    			}
    			found := true
    			for _, field := range gotFields {
    				_, ok := test.expectedFields[field]
    				found = found && ok
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 18 22:55:17 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  3. internal/event/config_test.go

    		if expectErr != testCase.expectErr {
    			t.Fatalf("test %v: error: expected: %v, got: %v", i+1, testCase.expectErr, expectErr)
    		}
    
    		if !testCase.expectErr {
    			if !reflect.DeepEqual(result, testCase.expectedResult) {
    				t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    			}
    		}
    	}
    }
    
    func TestFilterRuleListUnmarshalXML(t *testing.T) {
    	testCases := []struct {
    		data           []byte
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 29K bytes
    - Viewed (0)
Back to top