Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for filesToWrite (0.21 sec)

  1. cmd/kubeadm/app/util/patches/patches_test.go

    	tests := []struct {
    		name                 string
    		filesToWrite         []string
    		expectedPatchSets    []*patchSet
    		expectedPatchFiles   []string
    		expectedIgnoredFiles []string
    		expectedError        bool
    		patchData            string
    	}{
    		{
    			name:         "valid: patch files are sorted and non-patch files are ignored",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. src/go/types/generate_test.go

    func TestGenerate(t *testing.T) {
    	// If filesToWrite is set, write the generated content to disk.
    	// In the special case of "all", write all files in filemap.
    	write := *filesToWrite != ""
    	var files []string // files to process
    	if *filesToWrite != "" && *filesToWrite != "all" {
    		files = strings.Split(*filesToWrite, ",")
    	} else {
    		for file := range filemap {
    			files = append(files, file)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    	tests := map[string]struct {
    		filesToWrite  map[string]*clientcmdapi.Config
    		initConfig    *kubeadmapi.InitConfiguration
    		expectedError bool
    	}{
    		"files don't exist": {
    			initConfig:    initConfig,
    			expectedError: true,
    		},
    		"some files don't exist": {
    			filesToWrite: map[string]*clientcmdapi.Config{
    				kubeadmconstants.AdminKubeConfigFileName:      config,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top