Goarch: "amd64",
Output: []string{
"simple",
- "with spaces",
+ " with spaces \t",
"with UPPERcase",
"with UTF-8: Hello, 世界",
},
"detected_with_utf-8_hello_",
},
},
+
+ {
+ "invalid goos/goarch",
+ safcm.MsgInfoResp{
+ Goos: " INVALID goos! ",
+ Goarch: "Hello, 世界",
+ Output: nil,
+ },
+ []string{
+ "detected_invalid_goos_",
+ "detected_hello_",
+ },
+ },
}
for _, tc := range tests {