}
var fileTests = []fileTest{
- fileTest{
+ {
"testdata/gcc-386-mingw-obj",
FileHeader{0x014c, 0x000c, 0x0, 0x64a, 0x1e, 0x0, 0x104},
[]*SectionHeader{
&SectionHeader{".debug_aranges", 0, 0, 32, 1408, 1590, 0, 2, 0, 1108344832},
},
},
- fileTest{
+ {
"testdata/gcc-386-mingw-exec",
FileHeader{0x014c, 0x000f, 0x4c6a1b60, 0x3c00, 0x282, 0xe0, 0x107},
[]*SectionHeader{
var tests = []testCase{
// RFC2181, section 11.
- testCase{"_xmpp-server._tcp.google.com", true},
- testCase{"_xmpp-server._tcp.google.com", true},
- testCase{"foo.com", true},
- testCase{"1foo.com", true},
- testCase{"26.0.0.73.com", true},
- testCase{"fo-o.com", true},
- testCase{"fo1o.com", true},
- testCase{"foo1.com", true},
- testCase{"a.b..com", false},
+ {"_xmpp-server._tcp.google.com", true},
+ {"_xmpp-server._tcp.google.com", true},
+ {"foo.com", true},
+ {"1foo.com", true},
+ {"26.0.0.73.com", true},
+ {"fo-o.com", true},
+ {"fo1o.com", true},
+ {"foo1.com", true},
+ {"a.b..com", false},
}
func getTestCases(ch chan<- *testCase) {