Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsYAMLEqual (0.17 sec)

  1. operator/cmd/mesh/profile-dump_test.go

    				if err := os.WriteFile(outPath, []byte(got), 0o644); err != nil {
    					t.Error(err)
    				}
    			}
    
    			want, err := readFile(outPath)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !util.IsYAMLEqual(got, want) {
    				t.Errorf("profile-dump command(%s): got:\n%s\n\nwant:\n%s\nDiff:\n%s\n", tt.desc, got, want, util.YAMLDiff(got, want))
    			}
    		})
    	}
    }
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
Back to top