Skip to content

Commit

Permalink
update parse fixture generator for filter signature change
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 7, 2017
1 parent da98f02 commit d211a45
Show file tree
Hide file tree
Showing 97 changed files with 1 addition and 2,321 deletions.
2 changes: 1 addition & 1 deletion scripts/generate-parse-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const makeTest = (tarfile, tardata, maxMeta, filter, strict) => {

const p = new Parse({
maxMetaEntrySize: maxMeta,
filter: filter ? entry => entry.size % 2 !== 0 : null,
filter: filter ? (path, entry) => entry.size % 2 !== 0 : null,
strict: strict
})
const events = []
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum--filter-strict.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum--filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum--meta-50-filter-strict.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum--meta-50-filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum--meta-50-strict.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum--meta-50.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum--strict.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/parse/bad-cksum.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
20 changes: 0 additions & 20 deletions test/fixtures/parse/body-byte-counts--filter-strict.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:57:47.000Z",
"cksum": 6109,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -73,15 +68,10 @@
"mtime": "2017-04-10T17:08:55.000Z",
"cksum": 6064,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -117,15 +107,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -161,15 +146,10 @@
"mtime": "2017-04-10T17:08:01.000Z",
"cksum": 6246,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
20 changes: 0 additions & 20 deletions test/fixtures/parse/body-byte-counts--filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:57:47.000Z",
"cksum": 6109,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -73,15 +68,10 @@
"mtime": "2017-04-10T17:08:55.000Z",
"cksum": 6064,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -117,15 +107,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -161,15 +146,10 @@
"mtime": "2017-04-10T17:08:01.000Z",
"cksum": 6246,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
20 changes: 0 additions & 20 deletions test/fixtures/parse/body-byte-counts--meta-50-filter-strict.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:57:47.000Z",
"cksum": 6109,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -73,15 +68,10 @@
"mtime": "2017-04-10T17:08:55.000Z",
"cksum": 6064,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -117,15 +107,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -161,15 +146,10 @@
"mtime": "2017-04-10T17:08:01.000Z",
"cksum": 6246,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
20 changes: 0 additions & 20 deletions test/fixtures/parse/body-byte-counts--meta-50-filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
"mtime": "2017-04-10T16:57:47.000Z",
"cksum": 6109,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -73,15 +68,10 @@
"mtime": "2017-04-10T17:08:55.000Z",
"cksum": 6064,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -117,15 +107,10 @@
"mtime": "2017-04-10T16:58:20.000Z",
"cksum": 6121,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down Expand Up @@ -161,15 +146,10 @@
"mtime": "2017-04-10T17:08:01.000Z",
"cksum": 6246,
"linkpath": "",
"ustar": "ustar",
"ustarver": "00",
"uname": "isaacs",
"gname": "staff",
"devmaj": 0,
"devmin": 0,
"ustarPrefix": "",
"xstarPrefix": null,
"prefixTerminator": null,
"atime": null,
"ctime": null
}
Expand Down
Loading

0 comments on commit d211a45

Please sign in to comment.