From e6f8fb2b81c7ae57357260c7621e85d21fde813a Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Wed, 27 Feb 2019 17:22:45 +0100 Subject: [PATCH 1/2] Add new fixtures Signed-off-by: David Pordomingo --- Gopkg.lock | 4 +- .../src-d/lookout-test-fixtures/bindata.go | 50 ++++++++++++++++++- .../src-d/lookout-test-fixtures/main.go | 9 ++++ 3 files changed, 59 insertions(+), 4 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 17c81492..b648fee3 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -449,11 +449,11 @@ [[projects]] branch = "master" - digest = "1:0a77a893f09a715a9a22ba7e2166d0a852a9346056c8aa92c73141350e1bccff" + digest = "1:dbc72b8a0dce02b605b481aa9c38d368202755c50cdee8eb2b1fcf2b3ed8c0a6" name = "github.com/src-d/lookout-test-fixtures" packages = ["."] pruneopts = "NUT" - revision = "95f3273a018a1bf5c354e6ce9182530561b8fea1" + revision = "e56c92c0db9040963dd9cee228ac6299083a0a27" [[projects]] branch = "master" diff --git a/vendor/github.com/src-d/lookout-test-fixtures/bindata.go b/vendor/github.com/src-d/lookout-test-fixtures/bindata.go index 7a7847b1..e955f019 100644 --- a/vendor/github.com/src-d/lookout-test-fixtures/bindata.go +++ b/vendor/github.com/src-d/lookout-test-fixtures/bindata.go @@ -20,6 +20,8 @@ // fixtures/src-d.lookout-test-fixtures.pr-2-v0.json // fixtures/src-d.lookout-test-fixtures.pr-20-v0-compare.json // fixtures/src-d.lookout-test-fixtures.pr-20-v0.json +// fixtures/src-d.lookout-test-fixtures.pr-26-v0-compare.json +// fixtures/src-d.lookout-test-fixtures.pr-26-v0.json // fixtures/src-d.lookout-test-fixtures.pr-3-v0-compare.json // fixtures/src-d.lookout-test-fixtures.pr-3-v0.json // fixtures/src-d.lookout-test-fixtures.pr-4-v0-compare.json @@ -470,7 +472,7 @@ func fixturesSrcDLookoutTestFixturesPr20V0CompareJson() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "fixtures/src-d.lookout-test-fixtures.pr-20-v0-compare.json", size: 16210, mode: os.FileMode(420), modTime: time.Unix(1536310226, 0)} + info := bindataFileInfo{name: "fixtures/src-d.lookout-test-fixtures.pr-20-v0-compare.json", size: 16210, mode: os.FileMode(436), modTime: time.Unix(1536310226, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -490,7 +492,47 @@ func fixturesSrcDLookoutTestFixturesPr20V0Json() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "fixtures/src-d.lookout-test-fixtures.pr-20-v0.json", size: 16523, mode: os.FileMode(420), modTime: time.Unix(1536310226, 0)} + info := bindataFileInfo{name: "fixtures/src-d.lookout-test-fixtures.pr-20-v0.json", size: 16523, mode: os.FileMode(436), modTime: time.Unix(1536310226, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _fixturesSrcDLookoutTestFixturesPr26V0CompareJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x9a\x59\x73\x9b\x4a\xb7\xf7\xef\xf7\xa7\x50\xe9\xea\x7d\x4b\x8f\xcd\x3c\xb9\x2a\xf5\x6c\x34\x21\xa1\x01\xa1\x01\x24\x1d\x4e\xa5\x1a\xba\x19\x04\x34\x08\x10\x12\x4a\xed\xef\x7e\x4a\xb2\x63\x2b\xb1\x93\xc7\x76\xec\xbd\x73\x4e\x39\x37\x29\x37\xdd\xab\x57\x4f\x6b\xf5\xff\xa7\xfe\xf2\x47\xad\x56\xb7\x41\x8e\x3e\x3b\x49\x1c\x07\x45\xfd\xa6\x76\x2a\xaa\xd5\xea\xb9\x0f\xea\x37\xb5\x3a\xe3\x48\xbc\xc8\x03\x52\x90\x38\x17\x20\x8a\x85\x0c\x45\x91\xa2\x4b\xb3\x2e\x70\x1d\x09\xf0\x1c\x27\x20\x20\x88\x42\xfd\x5f\xb7\xcd\xbe\x33\x53\xab\xd5\xc1\xae\xf0\x93\xec\xa2\xa4\x56\xab\x43\x50\xa0\x93\x75\x9a\xa4\xa4\x2b\x92\xbe\x22\xc5\x39\x25\xdc\x50\xe2\x0d\xc5\xae\xef\x2c\x9d\xeb\x61\x10\x9f\xeb\xb5\x41\x19\xc0\xda\x24\xc9\x60\x12\x07\xd8\x4b\x2e\xeb\xa0\x18\x04\xd1\x7d\xa5\xeb\x87\x4a\xd7\xdd\x3f\xbd\xd3\xb7\x6b\x27\x89\xeb\x77\xf5\xff\xfa\xda\xf0\xce\xd1\x02\xfd\x7e\x9e\xc5\x28\xcf\x81\x77\xb6\xee\xa1\xe2\xca\xf1\x01\xf6\x50\x7e\xe5\x66\x49\x7c\x95\xec\x8a\x93\x87\xf0\x2a\xcd\x6a\x71\x02\x03\xb7\xaa\x9d\x56\xcf\xc2\x16\x9e\x05\x1e\x46\xf0\x2a\x71\xdd\x2b\xbb\xba\xa9\x7d\xef\x58\xcd\xda\x91\x24\xe3\xfc\xcc\x95\x73\x0d\x74\x3f\x82\x7a\x91\x21\xf4\xed\xec\x7c\xdd\x14\x22\xb0\x69\x87\xa3\x05\x8e\x66\x29\xca\x16\x25\xdb\xe1\x91\x64\xb3\x2e\x64\x81\x48\xb3\x82\xcb\x3a\x36\xc7\x4b\xf0\xf1\xd8\x76\xd9\x79\x42\xfc\xa2\x48\xf3\x1b\x82\x00\x69\x70\xed\x05\x85\xbf\xb3\x4f\xfd\x13\x19\x4a\x93\x9c\xc8\x33\xe7\x0a\x12\x51\x92\x84\xc9\xae\xb8\x2a\x50\x5e\x5c\xb9\xc1\xa1\xd8\x65\x28\x27\xbc\xa0\x20\x6e\x57\x2e\x27\x5e\xb8\x35\x6b\xb5\x7a\x89\xb2\xc0\x0d\x1c\x50\x04\x09\xfe\x76\x60\xb7\x5f\x10\xac\xdf\xd4\x8a\x6c\x87\x2e\x16\x31\x43\x20\x3f\xd7\xae\x97\x20\x0a\xe0\xe5\xfa\xe6\x81\x87\xc1\xc9\xaf\xd3\xd7\xab\xd3\xbf\x66\x47\xe9\x8f\x6b\x13\x65\x52\x9b\xf5\x95\xb1\x3c\x5f\x4c\x3b\xe7\x72\x0b\x1b\x28\xcb\x83\x04\xdf\xd4\x14\xbc\x9b\x28\xb5\x92\x3a\x2d\x59\xa0\xf7\x9d\xa6\x2c\x37\x65\x4f\x56\x9a\xba\xea\x2c\x6d\x6c\xca\x72\xa2\x76\x7a\xbc\x9e\xf7\x97\x20\x71\xd7\x74\x8b\xdc\xeb\xf2\xc0\x1f\x07\xc1\x7c\xea\x6e\x17\xfd\x0a\x4f\x27\x6a\x12\x84\xb3\xb8\xe2\x2c\xec\x4e\x36\x8e\x6b\xa7\x68\xe1\x2c\x8f\xec\x76\xd6\x5f\x87\xed\xc1\x90\xdb\x10\x33\x9b\x50\x70\xa4\x68\x87\x65\x39\x8e\x39\xce\x50\x53\x7a\x10\x6c\x0b\x3a\xe8\xaa\xf2\xa0\x3d\x66\xd2\x83\xdd\x25\x04\xbd\x63\xe1\x8e\x84\xb5\xfe\x6a\x29\x4c\xf7\xd4\xc2\x2c\x7b\xca\xce\x56\xc7\xe1\xb8\x84\xeb\xb5\x69\x47\xd8\x51\x25\x33\x5c\x90\xa0\x65\xc4\x4e\x9b\x5e\x0f\xe1\x81\x49\xba\x95\x10\x36\x39\x2e\xa1\xab\x03\x1e\xae\x2c\x4c\xec\xba\xb4\x40\x52\xf4\x74\xd4\x49\xc4\x7d\xce\x7a\xc2\x42\x46\x1c\xe1\xc1\x96\x96\x64\x8c\xc9\xcd\x9a\x93\x7d\xe5\x6e\x66\xa3\xbc\xd0\x8c\x59\x5f\x0e\xd9\x10\x13\xb0\x4b\x37\xc2\x94\x38\x0e\x00\xb2\xf0\xa8\x9a\xc2\xcc\x9b\x4f\xaa\x49\x07\xc9\x53\x2d\x9c\xb2\xcb\xae\x74\x0c\xf7\x4b\xf2\xa8\x14\x62\x67\x74\x38\xf4\x27\xba\x11\x0e\x66\x3c\xb3\xec\x0d\x06\xb2\x5a\x05\x30\x19\x11\xb3\x19\xc7\x4c\x8b\x95\xaa\x59\x58\x5b\x99\xbd\xb4\x82\xf1\x6e\x34\xcd\x7b\xfd\xb2\x8a\x28\xaf\xb3\x34\xd9\x50\x20\xa7\x2c\x64\x59\x06\xb2\x93\xa9\x3c\x19\x44\x5c\x86\x40\x31\x4b\xe0\x6a\x64\xc0\xb0\x39\xda\xc4\xf3\x79\xa9\x39\x74\xcf\xc2\xf9\x84\x22\xc2\xa6\xd9\x34\x12\x45\x73\xe6\x7d\x3f\xe9\xe6\xbb\xac\x4f\x39\x0b\x33\x98\xf2\xeb\xc5\xba\x35\x2e\xbd\x44\xa2\x13\x6d\x1a\x44\x5b\x09\xa8\x9e\x2c\xd2\x5c\x71\xe4\xf2\xc6\x20\xd9\x26\x33\x6c\xe1\xbc\x68\xcd\x36\x5d\xbb\xd9\x53\xe7\x03\x50\x85\x0d\x8d\x32\x08\x6d\x4f\x28\x23\x72\x1d\xc6\xab\xa9\x21\x09\x9d\xf6\x70\x6a\x06\x1a\x9c\x34\xab\x30\x5b\x51\x32\xa1\x4a\xa3\x6a\x74\x98\xac\x36\x02\x63\x87\x16\x16\x4d\xa2\xa1\xab\xd5\xba\x0f\x7d\xbd\xad\xb4\x0d\x60\x90\x26\x39\xaf\x4a\xe8\x56\x69\x5b\x5e\x87\xac\x33\xa3\xec\x05\x97\xd2\x03\x87\x8d\x3d\xb5\x51\x46\x81\xc0\x18\x8a\x33\x61\x9a\x7e\xb8\xdc\x31\x16\x26\x96\x6d\x9b\x5c\x6a\x26\x4f\x0b\x1c\xd9\x30\x13\xd6\xb4\xcd\xcd\xe0\x40\xda\x43\x9b\x2d\xbc\x35\xc7\xd8\xa2\x99\x4e\x96\xad\xca\x1d\xce\x41\xae\x77\xa5\x7c\xd3\x96\x75\x33\x50\xc6\xc3\x3e\xe7\xb1\x9a\x85\x87\x5b\x1a\x74\xc7\xf3\x0d\x1b\xe0\x80\xaf\xda\x0d\xc4\xdb\x2d\xa0\x08\xc6\x81\x74\x8c\x3e\x9a\x4e\xd5\xd3\x46\xf6\xf6\x23\x7e\x96\xb4\xd4\x15\xc9\x02\xbf\xca\xf7\xab\x46\xe6\x41\x1b\xed\x9d\x35\x69\xe1\xd2\x53\x7b\x1b\x85\x8f\x29\x45\x9c\xac\xa5\x56\xb9\xed\x8b\x63\x0b\x7f\x1a\x65\xab\x81\x85\xcf\xc7\xa1\x33\x6e\x3f\x71\x48\x2e\x8f\x56\x0a\xaa\x28\x01\xa7\xe3\x78\x8e\x42\xb5\xe7\x46\x1c\x0b\xa7\x20\x43\xb8\xa8\xb1\x2c\xc9\xb0\x8e\x44\x09\xa2\xe3\x4a\x34\xe9\x32\x8e\x88\x28\x51\x60\x29\xd7\xa6\x24\x16\x40\xd6\x21\x6d\xca\x85\x92\x85\x6f\xf3\xd3\xeb\xe3\x65\x8d\xe2\x58\x89\x67\x79\x5a\x62\x6b\x0d\x92\x22\x49\x0b\xdf\xe7\x96\x37\xb5\x6a\xe1\x7f\x22\x1d\x58\xf8\xe9\xdc\x89\x70\xf1\xd9\x49\x76\xf8\x94\xeb\xc9\x3f\x2e\xbe\x3f\x4e\xf8\xf5\x28\xf1\x82\x73\x08\x85\xe9\xe3\x44\x59\x0f\x4e\xcb\x4c\xb3\x8c\xc0\x89\xec\x7d\x21\x4e\x20\xfa\x7c\xfe\x52\x1f\xb5\x75\xde\x58\x8e\x23\x67\xd3\x27\x47\x47\x87\xd2\xda\xfa\xa7\x87\xd6\xa0\x04\x05\xc8\x3e\x7f\x9f\x58\xce\xa5\x39\x7d\x97\x5d\x76\x39\xca\x9c\x04\x17\x08\x17\xe7\x44\xb3\x23\xee\xfa\xfb\x77\xf9\x89\x7d\xb0\xe5\x17\x71\xf4\xbd\xa5\x8b\xf4\xf4\xa4\xf7\x5e\x76\xe7\xc1\xad\xb3\x17\xd9\xb3\x4a\xcf\x89\x61\x91\xa3\xec\xa1\x34\x0f\x0a\xf4\x19\xc0\xf8\x3c\x1f\x2e\x88\x72\xf4\xcc\xdc\x78\x1a\x42\xfe\xb4\x0b\xa8\x44\xb8\xc8\x1f\x4d\xc1\x7f\x68\x4f\xdc\x36\xfb\x42\xa4\x59\x50\x02\xa7\xfa\xeb\xc1\xa0\x9b\x44\x51\xb2\x0f\xb0\xf7\x62\x9b\xf7\x2d\xbf\x10\x49\xe1\xa3\xec\xf3\xa9\xca\x23\xcb\x28\x7b\xb9\xb7\xf7\x2d\x2f\xa6\x3e\xc8\x5f\x31\xec\x73\xab\x2f\xe7\xff\x3e\x07\xf0\xc2\xb7\x24\xf3\x00\x0e\x8e\xe7\xdb\xc1\xcb\xcd\x26\x99\x77\xe1\x5a\x86\x1c\x14\x94\x08\x7e\x7e\xe5\xda\x7c\xd7\xfe\xd2\x70\x9a\xbc\xc6\x5c\x9a\x5c\x18\xc9\x0b\x90\x65\x08\xbe\xd8\xcc\x5d\xbb\x2f\x44\xb2\xc7\x28\xfb\xeb\xcb\xd9\xee\xc5\x0c\xe6\x3b\x3b\x77\xb2\x20\x7d\xdd\x0c\x7e\xd3\xba\xfe\x4d\x48\x79\xea\xb2\xfe\x11\x55\x3e\xa2\xca\x47\x54\xf9\x88\x2a\xaf\x8f\x2a\xb7\x57\xc5\xbc\x7e\x53\xfb\xaf\xbb\xbe\x1e\x4b\xdd\xe7\xde\x23\x2f\x2f\xaf\xff\xe1\xc0\xff\x4c\xdf\xde\x06\x3a\xe2\x35\xbd\xfe\xaa\xb4\xfe\x2a\xab\x9f\xdd\xf7\xd7\x6b\xe1\xf9\xff\xff\xbe\x9b\xd3\x5f\x1f\xfb\x4b\x89\xd3\x5b\x8d\xfb\x35\xa4\xeb\x19\xa7\xf0\xed\x1d\x20\xbe\xf6\x7c\x5a\x81\xf3\x5e\xae\xc7\x28\xf3\xd0\xe7\x9f\x71\xbc\x17\xee\xa8\x5f\xe3\x78\xfc\x0d\x49\xfd\x9e\x1c\x4f\xb8\x61\x84\xdf\x8d\xe3\xf5\x71\x50\x04\x20\xaa\xdd\x8e\xe4\x6f\x46\x79\x1c\x94\x1c\x5b\x80\x9c\xed\x22\x07\x21\x60\xd3\x82\xcd\x38\xb6\x84\x20\x64\x6d\x9b\x65\x28\x8a\x76\x1d\x40\x41\xfb\x7d\x51\xde\x8b\xe3\xdd\xff\x02\x94\x17\x93\xdf\xa3\x3c\x68\x87\xba\x3c\xcc\x8d\x43\x3e\xdf\x4a\x9b\xd2\xcc\x77\x99\x37\x4a\x46\x34\x41\xc3\xa3\x85\xc3\xd5\x50\x3a\x02\x56\x8c\x06\x66\x42\x35\x7a\xe3\x0e\xdb\x71\xfc\x69\xd5\x83\x85\x3b\x0d\xdc\x66\x3a\xdc\xe5\xde\xac\x92\xd0\x60\x78\xf4\x86\xd9\x56\x8b\x8d\xe9\x7e\x90\xb3\xfb\x69\x3f\xd1\xe7\x9c\x10\x5b\x38\xd2\x0a\xb4\x1c\x0a\xec\xb1\x5f\xf4\x67\xb3\x75\xb1\x0a\x9b\xc1\xf8\xb0\xc9\x39\x71\xcd\x32\x7c\x67\xcd\x6c\x33\x6e\xeb\x8b\xc2\x8e\x1d\xc7\x04\x30\x4b\x41\x6c\xf8\x7a\xa5\x36\xb9\x89\x73\xf0\xab\x86\x64\x61\x7f\x28\x2d\x23\x37\xd2\xa3\x7d\xe1\x2f\xa4\x96\xda\x3e\x16\x21\x7f\xf4\xb2\x56\xab\xe3\x98\x99\x17\x6f\xe4\x6d\x1c\xb7\x15\x1a\x78\xc1\x84\x86\x07\x73\x1e\x6e\xa6\xcb\x11\x22\x7b\x6a\xcb\x17\xd1\x62\x6d\x61\x75\xb3\x26\xd7\x4d\x21\x49\xe8\xa1\x6a\x34\x84\x32\x0d\x57\x6c\x13\x17\xe1\x8c\x5e\xef\x9c\x78\xc6\x4a\xda\x78\x28\x6e\x9b\xca\x82\xdb\x73\x69\x44\x6e\xc6\x5b\x2c\xac\xfc\x6e\x77\x17\xda\xb3\xdd\x7c\xee\x58\x58\x86\xde\x6c\x32\xd2\xb7\xe3\x74\xed\xb6\x2b\xb5\x57\x1a\xac\xaa\x45\x12\x3d\x1b\x84\xe6\x6c\xaa\x74\x52\x83\x5d\x14\x95\xd9\xf4\x3c\x6a\xcf\x64\xf9\x36\x12\x96\xd3\x8e\x32\x91\x79\xaa\x54\x14\x22\xed\x5b\xf8\xa8\xf5\x9a\x91\x80\x87\x5d\x61\xac\x2a\xfd\xe1\xfc\xd0\x68\x6d\x62\x18\x69\x05\x2d\x56\x2b\x9f\x0a\x51\x97\x4f\x06\x4b\x2c\xd1\x6e\x14\xb1\x4d\x4c\xf8\x9b\x39\x14\x9d\x6c\x25\x00\x97\xda\x28\xc3\xa1\x85\x63\xa0\xb4\xf7\xdc\xda\xe8\xc2\x72\x57\x0a\xcd\x61\xb3\x79\x58\xcc\x2a\x69\xe0\x67\x85\xa4\xcb\x02\x4d\x6c\x5b\x82\x8b\xdb\x6c\x68\x1a\x84\x46\x1d\xc8\x51\x7b\x43\x3b\x2e\x43\xb7\xe6\x46\x57\x6d\xa7\x81\x85\x51\x3c\x9c\xb7\x0f\x6b\x1e\x69\xb3\x51\xa2\x83\x4d\x66\x3a\x6d\x7d\xb3\x46\xcb\x43\xe9\xd0\x7e\xab\x6c\x2a\x2d\x27\x6b\x8d\xb7\xbc\x2b\x63\xae\xd3\x9e\x77\xe6\xc2\x88\x61\xcc\xf1\x96\x4f\x74\x5a\x59\xea\x16\xb6\x81\x14\x9b\x7e\xae\x2c\xec\xd6\x48\x82\xad\x71\x3f\x3b\x4c\x67\xa4\xad\x2e\x02\x52\x58\xb8\x83\x46\x65\x64\x4b\x51\xa6\xc6\x65\xd9\x38\xaa\xc4\xa8\xcc\x67\xbb\x38\x37\xec\x2c\xe5\xc0\x0c\xb5\xbb\xaa\x85\xdb\x71\x84\xa0\x04\x75\x9d\xe8\x7a\xe0\x90\x14\x5b\x62\x63\x08\xea\x04\x57\x5c\xbb\xdd\x70\xb8\xa8\xe1\xfa\x51\x5f\xf4\x36\xae\x3e\x2a\xa1\x46\x0c\x54\x9f\x94\xfa\x8d\x8d\x17\x03\x49\xef\xc7\x31\x6f\x61\xbc\x50\x71\x83\x9f\x34\x92\xbe\xd3\xdb\x65\x6d\x47\x0b\x24\xd1\xc2\x9f\x38\x4f\xcd\x5e\x8d\xf2\x9e\x1b\x71\xde\x8e\xcc\x51\x3c\xf5\x1e\x64\x8e\x13\x9e\x49\xe6\xde\x2f\xc0\x7f\xc0\xb9\x0f\x19\xfd\x21\xa3\x3f\x64\xf4\x07\x9c\xfb\x88\x2a\x1f\x51\xe5\x23\xaa\xfc\x1f\x8a\x2a\x7f\x3b\x44\xfb\xfb\x01\xda\x7b\x81\xa4\xe7\x3a\xf0\x04\x48\xca\x0b\x50\xec\xf2\x73\xdc\x0e\x4a\x94\x79\xe8\x56\x25\xd7\x81\x8f\x00\xfc\x6c\x57\xf5\x9b\x1a\x75\x2e\xb0\x91\x1f\xe0\x6f\x4a\x8a\xa4\x00\xd1\x1d\x7e\xca\xef\x4b\x1f\xfe\xbe\x65\xac\xf7\x09\xe2\x9e\x3f\x20\x41\xa0\x5c\xc6\xe5\x38\x09\xb1\x94\xc0\x30\xb4\xe8\xd2\x10\xf2\x22\xc5\x0b\x80\x96\x80\x4d\x01\xde\xe1\xf8\xfa\x77\xc0\xe7\x5b\xcd\xff\x04\x9b\xfa\x31\x03\x92\x6e\x48\xee\x92\x01\x3d\x8f\x02\x5d\x72\x20\x78\xbe\x98\x3f\xec\xe3\x6b\xf7\x31\x07\xba\xb8\x92\xff\x90\x52\xfd\x5e\x3e\xbe\xf0\xdd\xd9\x69\x47\xbc\x0b\xac\x7a\x0a\x57\x5d\x6c\x18\x9e\x13\x69\x16\x22\x46\x10\x80\xeb\x02\x86\x65\x21\x92\x24\x16\x32\x48\xa0\x29\xdb\x71\x5c\x8e\x81\xc8\xe6\xc8\xa7\xc7\xf8\x96\xd0\xea\xc5\x5b\xf7\x67\xd8\xea\x67\xe0\xea\xa7\xe8\xea\x7d\xe0\x55\xa2\x7e\x0f\xaf\x0a\x61\xa5\xcb\x83\x99\x4c\xce\x28\xb5\x3f\x4d\xbd\x5e\xbf\x29\xa7\x53\xe6\x78\xd0\x82\xb6\x85\x21\x29\xf3\xed\x85\x1a\x77\x07\xbc\xe7\xea\x9e\xc6\x19\x81\x1f\xf4\x33\x96\x11\xe7\x62\x49\x87\x09\x60\x5a\xa8\xed\x89\xb6\x6f\xcc\xa3\xc9\x98\x14\x85\x3e\x0c\x93\xaa\x09\x60\x0f\x6e\x47\x9c\xbb\xb0\xb0\x31\x30\xb7\x4e\x1e\x74\x6d\x84\xec\x69\x10\x39\x44\x0f\x65\x0b\xc3\x5c\x61\xf2\x58\x4c\x00\x18\xa8\xfd\xf0\xd8\x12\xfa\x83\x11\x7d\xd8\xe1\xc6\x4a\xa7\x01\xa5\x2f\x7b\x15\xa7\xc8\x73\x67\x9a\x10\x8a\x85\x27\x8b\x05\x9a\x1f\xdb\x7c\x17\xb9\x41\x38\x35\xb7\x03\x61\x0f\x71\x27\xce\x97\x5c\xc6\x0e\xbb\x2a\x34\x04\x87\x97\x94\x4e\x0e\x0e\x8b\x0d\xb5\x69\x0e\x79\x43\x1b\xac\x19\xb3\xad\x15\x3a\x1d\x10\xb2\x66\xe1\x76\x5b\x2e\xcc\xaa\x41\x99\x9c\xb9\x6d\x63\xbf\x47\x1f\x40\x69\xb0\x03\x5f\xe8\x95\xdb\xf0\xb0\x1a\x14\x7c\x4a\x6f\xe5\x0d\x71\x4c\x14\x73\xbc\xd7\x83\x61\x60\x76\xb9\x70\xa8\xf3\x84\xe8\xac\xb8\x52\xb6\x70\xda\x45\x0d\xff\x80\xb9\x59\x7b\x0a\x89\x68\x1c\xb6\x91\xaf\x05\xae\x36\x45\xcb\x49\xb7\xdb\xd3\x51\xde\x1f\x56\x8a\x39\xda\x48\x44\xdf\x1c\xa9\x69\x3f\xee\x1e\x29\x21\xf6\x64\x6d\xe8\x1c\x65\x7d\xa3\x5a\x58\xf0\xab\x71\x86\x24\x65\x19\x74\x66\x13\x30\xa2\xf1\xb0\x1f\x11\x72\x22\xae\xf8\x9e\xcc\x29\x94\xc4\x1b\x13\x93\x1a\xd3\xe3\x79\xb6\x22\xc2\x6e\xa5\x57\xce\x8a\xf5\x27\xbd\x99\x6c\xb6\xe8\x68\xbf\x4a\x2d\xec\x8f\x28\x87\x6a\x2c\x06\x8a\xe7\x94\x61\x6b\x1c\x47\x5e\x4b\x3b\x0c\x92\xdd\xde\x63\x7b\xe2\x76\x8a\xb7\x5a\x8b\xdc\x09\xb9\x5d\xd0\xa6\xe3\x34\x07\xb3\x19\x2f\x30\xa1\x37\x8c\xcd\x85\xdd\x32\x27\xd2\xca\xc2\x3e\x31\x8d\x21\x90\x8f\x1d\xa6\x9b\x8e\xca\xd1\xd4\xdb\xa5\xa2\xae\xb9\x6b\x83\x07\xdb\xb1\x23\xe9\x19\xbd\x49\xe9\x91\x22\x56\xe4\x0e\x4c\x9a\xbd\x05\xde\x89\xf9\xbc\xdb\xe4\x3c\xf5\x40\xdb\x4b\x95\xb6\xb0\xd1\x0a\x07\x89\xc4\x7a\x92\xe6\xcc\xa8\x2c\xf5\xd3\xf5\xaa\x18\xb5\x0c\x29\x8f\xed\xb4\x58\x6d\x9d\xad\x38\x1c\x6c\xf5\x83\x07\x34\x61\xdc\xdf\xda\xd0\xb0\xa5\xb4\x55\x30\xfb\xc9\x66\xd2\x35\xf6\xa3\x81\x85\xb5\x86\x8b\xb3\x63\x2a\xb8\xa2\xe9\x62\xe8\x2a\x25\xd1\x38\xa8\xc1\x88\x9f\x0e\xf0\x58\x2b\xb7\x40\x9a\xc7\x28\x4d\x1a\x0e\xb7\x6b\x0c\x56\xd4\x52\x02\x5d\xb3\xd0\xed\x70\x26\x1e\xb4\xf5\x64\x5f\xd8\x16\x4e\xc1\x42\x88\x97\x15\xc7\xc1\x21\x87\xd4\x49\xc2\x46\xc3\xd0\xc2\x9f\x1a\x5a\x57\x79\x2e\xbc\x7a\x0a\x5f\x3d\x33\xfe\xfc\x83\x2f\xd1\x18\x96\x7b\x07\xde\x75\x61\xf5\x79\x2f\xd1\xde\x3a\x41\x3c\xc0\xae\xc7\xb9\xf5\x31\xf0\xba\x44\x62\x4f\xfd\x74\xf5\x53\x81\xfa\x03\x89\xfa\x02\x91\xfa\xb6\x32\xf5\x75\x42\xf5\x27\x52\xf5\x47\x62\xf5\xa7\x72\xf5\x17\x04\xeb\x3b\x48\xd6\xf7\x14\xad\x6f\x2c\x5b\xdf\x5c\xb8\xbe\xad\x74\x7d\x47\xf1\xfa\x46\xf2\xf5\xfd\x04\xec\x7b\x48\xd8\x67\xfc\x3c\xfd\x11\x7d\x3e\xa2\xcf\x47\xf4\xf9\x88\x3e\xef\x1c\x7d\x1e\xbf\x70\xab\x3d\x29\xaa\x5f\xf1\xde\xec\x9f\x7a\xe7\xf6\x0f\xbe\x74\xfb\xfa\xd6\xed\xfe\xb5\xdb\x9b\xcc\xc1\xcb\x09\xd8\x5b\x8d\xff\x75\xec\xed\x4d\x51\xe5\x73\x5d\xf8\x06\x55\xde\xae\xc3\x79\x0d\xea\x6e\x10\xa1\x1f\xd3\x45\x97\xb3\x59\x44\x4a\x34\x0f\x91\x2b\x49\x12\x80\x1c\x47\xb9\x14\xe7\xd2\x88\x07\x0c\xe3\x00\x8e\x75\x79\x97\x74\xe9\x8b\x5f\x2b\x82\x08\x7d\x25\x6d\x1b\x50\x82\xdb\xd3\x75\xbd\xb9\x40\xe9\x00\xc2\xe0\xf6\xbc\xdd\x41\xce\x73\x29\x44\x11\xfa\x5a\x4a\x3e\x4c\xd8\xad\x46\xfa\xa6\xe6\x03\x63\x05\x10\xa2\x07\x96\x53\x4f\x41\xe1\xf8\xa7\xf2\x3f\xff\xac\x5d\x91\xff\x22\x6b\x0d\xaa\xf6\xe7\x9f\x16\x6e\x38\x09\xce\x93\x08\x5d\x47\x89\xf7\xff\xac\xba\x8f\xa2\x28\xa9\x6d\x72\xab\xfe\xff\x1f\xda\xda\x51\x62\xbf\x72\x1f\x9e\x9a\x3e\x7f\x21\x7e\x30\x29\x19\xd8\xbf\xb2\xfb\x0c\xec\x7f\xb9\xf7\xbb\x3b\xcc\x5b\xec\xcb\x5b\x43\xdf\x76\xf4\xef\x0c\xb9\x9f\x9e\x7d\x5a\xbe\xdb\xa1\xbf\x16\x21\x4e\x11\xfc\xd9\x2f\x43\xaf\xaf\xaf\x5f\x74\xa6\xeb\x29\xca\x62\x10\x05\x38\xfc\x45\x07\xcf\x75\x6e\xee\xdc\xbc\xbe\xbe\xbe\xfd\xfb\xce\x97\xdb\xae\x60\xe0\xba\xbf\xdf\x34\x5c\x9f\xdc\xba\x9b\x8b\xd3\xe9\xfb\x0d\x3d\xbc\x8d\x0a\x67\x17\xdf\x20\xea\xbe\xdb\x7e\xfa\xe3\xaf\xff\x09\x00\x00\xff\xff\x1d\x9e\x85\xeb\x4c\x40\x00\x00") + +func fixturesSrcDLookoutTestFixturesPr26V0CompareJsonBytes() ([]byte, error) { + return bindataRead( + _fixturesSrcDLookoutTestFixturesPr26V0CompareJson, + "fixtures/src-d.lookout-test-fixtures.pr-26-v0-compare.json", + ) +} + +func fixturesSrcDLookoutTestFixturesPr26V0CompareJson() (*asset, error) { + bytes, err := fixturesSrcDLookoutTestFixturesPr26V0CompareJsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "fixtures/src-d.lookout-test-fixtures.pr-26-v0-compare.json", size: 16460, mode: os.FileMode(420), modTime: time.Unix(1536310226, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _fixturesSrcDLookoutTestFixturesPr26V0Json = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5b\x5b\x73\xa3\x38\xfe\x7d\xef\x4f\x41\xf9\xff\xf8\x6f\x07\x03\x06\x5f\xaa\xba\x66\x67\xaa\xd3\xa9\xd9\x9a\x24\x3d\xbd\xc9\x6e\x57\x76\xb6\x5c\x02\x04\x56\x8c\x11\x25\x89\x38\x09\xe5\xef\xbe\x25\x71\xb7\x09\x60\x23\xbf\xed\x3c\x64\xda\xba\x9c\xa3\xbb\xf4\x3b\xc7\x4e\x3e\x29\xca\x08\xb9\xa3\xa5\xa2\x9b\x96\xb9\x98\x4e\xe7\xf3\xcf\x3c\x29\x8c\xb7\x36\x24\x3c\xd9\x12\x9f\x29\x03\x0c\x8e\x96\xca\x08\x47\x30\x1c\x89\x24\x86\x58\x20\x92\x7e\xc0\x17\x04\x77\xca\xf7\x1f\x8a\x47\xf0\x56\xf1\x30\xd9\xa4\x25\x6c\xec\xbe\xf1\x02\x0e\x88\x29\x74\x15\xfb\x4d\x59\x33\x16\xd1\xa5\xaa\xfa\x88\xad\x63\xfb\xca\xc1\x5b\x95\x12\x67\xec\xaa\x01\xc6\x1b\x1c\x33\x15\x51\x1a\x43\xaa\xea\x86\xfe\x17\xf9\x2b\xf4\xd0\x2b\x8b\x09\xa4\x0a\x70\xdd\x14\xe0\xff\xf4\x59\x8a\xed\x10\x08\x18\x74\x57\x80\x71\x06\x7d\xa2\x2d\xc6\x13\x7d\xac\xcf\x1e\x26\x8b\xe5\x64\xbe\x34\x27\x4f\x69\xb9\x38\x72\x3f\x2c\xa7\x5b\xcb\xc9\x22\x2b\x17\x00\x1b\x06\x74\xb4\x54\xfe\xfd\x49\x51\x14\x25\x11\x7f\xf3\xb1\xd1\x74\x73\x32\x37\x4c\xcd\x9c\x7c\xce\xd3\x63\x12\x70\xc0\xbc\x43\x20\x42\x57\x95\x4e\x11\x18\x61\x5a\xef\xda\x98\x41\xca\xc6\x79\x8f\xd4\x94\x4f\xcd\x3f\x8f\x0a\xe0\x10\x6c\xc5\xa8\x1e\xe7\x38\x38\xc0\x7c\x4a\x46\x13\xf1\x5f\x99\xe1\x42\xea\x10\x14\x31\x84\x43\x9e\x7d\x87\x99\x02\x94\x10\xee\x14\x0f\x02\x8e\xc1\xa7\x44\x61\x6b\x44\x95\xef\x3f\x3e\x2b\x76\xcc\xb3\xab\x59\x59\x0b\xab\x80\x1e\x88\x03\x3e\x62\x1e\x08\x28\x2c\xdb\x86\x5d\xb8\x12\x23\x32\xba\xfd\xfa\x68\x3d\xdc\x7c\x43\x4f\xff\xda\xbd\xde\x3e\x3f\xee\xee\xbf\xde\x6a\xb7\x0f\x8f\xbb\x91\x28\xbb\xff\xa4\x28\xff\x49\xc7\x9f\x8a\x65\x94\x8e\xe7\x28\xc0\x3e\x12\x6d\x74\x23\x4c\x5c\xbc\x45\xa1\x8f\x33\xda\x6c\x15\x4e\x8d\x99\x39\x9f\x66\x49\x35\xbe\x3f\xad\x7f\xfe\xbc\x0b\x9c\xe7\xdf\x27\xb7\xef\x8e\x76\xff\xf5\xcf\x2f\x79\x4d\xf0\x02\x18\x20\xab\xc3\x29\x11\xa9\x54\xcf\xe6\x85\x37\xc4\xc1\x21\x83\x21\x13\x53\x14\xab\x19\xd7\x2f\x2f\x5f\xa6\x39\xd2\x9a\x6d\x83\x43\x9c\xca\xb4\x36\xb4\xda\x27\x19\x7b\xda\xcc\x3c\x99\xbd\x45\x62\x16\x1f\x79\xf7\xb3\x34\x8a\x18\x5c\x01\x77\x2b\x46\xa0\x32\xb0\x1d\x6b\x89\x37\x9c\x36\x51\xc3\x17\x18\x32\x7a\xd4\xed\x8e\xda\x6a\x5a\x2d\x51\x23\x82\x5e\x80\xf3\xb6\xcf\xe1\x3c\x1c\x04\x78\x87\x42\xff\x64\xc4\xa2\x66\xa2\x62\xb6\x86\x64\xc5\x8b\x1c\xe0\x42\x72\x7a\x4b\x8b\x9a\xc5\x60\x23\x7a\x46\x87\x45\xad\x44\xfc\x6f\x85\xdc\xa2\x5d\x98\xf8\x20\x44\xef\x80\x6f\x9b\xd3\x41\x31\xf1\x8b\x66\x11\xe8\x40\xf4\x02\xdd\xd5\x99\x33\x72\x50\xbf\x84\x8d\xf0\x39\x60\x11\x2e\x20\x28\x03\x84\x40\xf7\x64\x90\xac\x5e\xa2\xe2\x5d\x08\xc9\x3e\x11\xa8\xc5\xc8\xd1\xd8\x2e\x0e\x9c\xd3\x1b\x58\xab\xcd\x8f\x8b\xbd\x38\x28\xb6\x90\xf8\xd0\xad\xee\x8c\x34\x09\xd8\xe2\x96\x61\x24\x3e\x48\x5c\x15\x77\x92\x13\x40\x90\x5d\x4a\x22\x77\xe5\xe0\xed\x16\xb1\x15\x5d\x83\xf4\xfa\xd1\xa0\x65\x58\x8b\x85\xe7\xcd\xa7\xd0\xb1\x17\x53\x0b\x5a\x9e\xab\x03\x0b\x1a\x70\x0e\x35\xc7\x36\x34\xdd\x81\xd3\xec\x62\xc1\xdb\xad\x98\x85\xa5\x32\x29\x12\x90\xf8\xac\x89\xcf\xc0\x75\x51\xda\xf6\x3c\xc5\x85\x01\xcc\x53\xb2\x3a\x6b\x10\xfa\xd0\x5d\x79\x28\x80\x65\xb9\xa1\x77\x46\x14\x07\x01\x55\x75\x2b\x6d\x68\xc7\x59\xd5\x05\x54\xe0\x88\x2b\xb7\x63\x16\xbb\xdb\x96\x5f\xdc\x19\x28\x9f\x9b\x98\xc2\xae\xd5\xd1\x8d\x9b\x03\xa9\xa6\x0b\x67\x33\xcd\x33\x3c\xd3\x5c\xc0\xa9\x36\x33\x0c\x7d\xee\xe9\xae\x6b\xcd\x35\x6b\x06\xf4\x05\xb0\x35\x60\x39\x66\xc6\xef\x22\xcf\x1b\x36\x38\x57\x1c\x22\x05\x8b\x00\x73\xd6\x03\xd1\x04\xc6\xa8\xba\xa0\x06\x0f\x4d\xbe\x1c\xd4\x7c\x85\xd6\xd6\xaf\xbc\x19\x55\x8b\x2d\x21\x08\x88\x78\xee\xad\xa4\xf1\xd4\xba\xf1\x11\x8d\x24\x96\x9c\x22\x51\xd3\x07\xee\xbe\xb1\x4b\xc5\x36\xde\x02\x14\x32\x80\x42\x48\x56\x0e\x08\x57\x5b\xec\x22\xef\xad\x7a\x18\x81\x98\xad\x31\x59\x01\x4a\xb1\x83\x40\xfe\x00\xbb\xbd\xbe\xfd\xed\xfa\x47\x0a\x5d\x7b\xc2\x5c\xbf\xde\x07\xbf\x69\xf6\xcd\xeb\x3f\x9e\x7e\x7e\xd3\x9e\x7e\xde\x4d\x6e\x9f\x1f\xf5\xbb\x87\xcd\xe4\xee\xab\x9f\x9d\x3f\xab\x00\x85\x1b\x5a\x3e\x99\x28\x0c\xbc\xe2\x13\xdf\xf6\x04\x7a\x72\x4e\x91\xf4\xa5\x56\x79\xf9\xb4\xd1\x9c\x78\xb2\xd4\xb0\xc5\x4a\x92\xda\x87\xf2\xb4\xa9\x11\x55\x26\xf0\x02\x5c\xe5\x02\xad\x91\x1e\x2f\x1e\xf9\x73\xd5\x8b\xfa\x02\xcc\xc7\xfb\xe5\x68\xbc\xd1\x25\xbb\x8c\x0e\x7b\x9c\x5f\x07\x52\x29\x4f\xbf\x63\x8a\x20\x27\x7d\xbb\xac\x21\x70\x2b\x41\x0e\x0f\xed\x0e\x82\x9c\x65\x3a\x55\xe3\x88\x8c\x79\x90\x3c\xe6\x41\xf2\xd8\x01\xa1\x8b\x78\x78\x5a\xbe\xf8\x44\x47\x7a\x95\xcd\x1e\x37\x27\x5d\x8b\xd9\xa3\xb2\x3a\x78\x69\x7c\x6b\x2d\x66\xd6\x4c\x33\xcd\xe6\x48\xef\x7a\x77\x1f\xfc\x3d\x70\x6e\x16\xef\xe0\xe7\x8f\x17\x27\xdc\xbc\xde\x3d\x6f\x8c\xbb\x67\xe7\xf5\xee\xe1\xf1\x4b\x19\x36\x8a\xc7\x62\x05\xbc\x3d\xe0\xfb\x20\xe8\x3b\x21\xf0\x93\x1b\xfc\x9d\x17\x00\xb6\x04\x81\x1f\x05\x82\xad\xc1\xe0\x80\x80\xf0\x02\x41\xe1\x25\x03\x43\xc9\xc1\xa1\xf4\x00\x51\x6e\x90\xa8\x5c\x2e\x50\x54\xe4\x04\x8b\xca\xc5\x02\x46\xe5\x02\x41\x63\xe5\x52\xa8\x88\x66\x8d\xe7\x7b\x79\x40\x79\x71\x10\xac\xf2\xb2\x55\xf8\x8e\x7a\x99\x1e\xb6\xb2\x09\x08\x9d\x35\xaf\xbc\x05\x94\x55\x36\xf4\x07\x72\xe4\x64\xfe\xa0\x59\xcb\xe9\x6c\x69\x6a\x4f\x65\xd9\x28\xa6\xeb\x26\x45\x52\xb3\x96\xc6\x62\xa9\x59\x95\xa2\xcd\xea\x65\x09\x6b\x54\xca\xf6\x3f\xba\xba\xba\xeb\x04\x38\x3c\x8a\x08\x4f\x81\xe2\x73\x59\xc2\xf9\xa8\x78\xbe\xfb\x88\x0d\x82\xa2\x74\x5d\x81\xfa\x5b\x09\xb4\x3c\x15\xe8\x25\x94\x33\x56\x01\x08\xfd\x18\xf8\x62\x45\xdd\xe0\xca\x52\xc3\x64\x53\x89\x14\x8a\x34\xba\x72\x70\x2c\xde\x6a\xa5\x96\x8c\x23\x18\xae\xd2\x67\x66\x43\x2e\xdf\x5a\x3e\x78\xe7\x67\xe4\x71\xe6\x8e\x87\x95\xcd\x59\x14\xbd\xf3\x56\x19\xe6\xa4\xb8\x59\x47\x80\x38\x6b\x7e\x80\x1c\x29\xbb\x01\x72\x60\x48\x61\xfd\xf2\xde\x40\x21\xdf\x03\x3f\x0a\xc6\xc6\xd5\xa4\xba\x9b\xf3\x4d\x74\x73\xf7\xa8\xfc\xea\x79\x90\x60\xe5\x06\x86\x90\x80\x40\xf9\x1e\xdb\x01\x72\x94\x3f\x52\x44\xe5\xe5\xa0\x66\xfb\xce\xcf\xda\x41\xd5\x26\x52\x1a\xb9\xaf\xd9\x15\xfb\xeb\xcd\xf7\x3f\x44\xf6\xd1\x51\x20\x6e\x30\xa1\x0b\xd5\x7b\xb8\x06\x34\x1b\xe3\xc6\xac\x1d\xda\xa0\xc6\x8c\x08\xf8\x1f\x54\x89\x08\x7e\x86\x8e\x78\xfe\xd6\xa6\x99\xe7\xb9\x78\x17\x06\x18\xb8\x47\x99\x7d\xe2\xd8\x13\x96\x5f\x36\xa1\xbd\xc2\xe3\x4e\x58\x35\xc9\xe1\x3c\x4c\xb6\x80\x89\x63\xdc\xdb\x57\xd8\x28\x45\x7e\x08\x7b\xca\x3a\xdd\x7c\x05\x5e\xa2\xd6\x5f\x06\x23\x3b\xc0\xb6\x2c\x16\x1f\x31\x55\xe0\x25\x2a\x5d\x83\x2a\x89\x38\xce\xa5\xf5\x26\x87\x4b\xb2\x7f\xed\x6b\xd6\x4d\x00\x6c\x4c\x00\xc3\x9d\x4f\x9d\xbe\x74\x35\xcc\xa4\xf6\xb1\xc6\x7c\x82\x4c\xd3\x87\xb4\x49\x40\x51\x94\x13\x65\xad\x7e\x44\x88\x1d\x4d\x99\x83\xb7\x11\x20\xb2\xd6\x7b\x86\xa6\x26\x36\xa0\x70\x7f\x75\x75\x95\xf0\x48\xae\x46\x27\x62\x06\x79\x9d\x4a\xe1\xd4\xe4\xff\x23\xc0\xd6\x07\x44\x04\xd9\xb1\xd4\xf5\x51\x42\x56\x9f\x32\x51\x80\xdf\x64\x2e\x89\x0a\x62\x85\x26\x3f\xff\x64\x91\x14\xe7\x69\x41\xd1\xeb\x0d\xdd\x17\xff\xe0\x41\x9d\x5d\xd5\x72\xb0\x05\x56\xfd\x39\x24\x77\xaf\xf0\x03\xee\x83\xfd\xc2\xc9\x08\xf4\x64\x32\x71\xb8\x26\x1a\x06\x7c\x99\x34\x1c\xee\x90\x66\x8d\xb1\xb4\x59\x11\x58\x25\x74\xea\x82\x9c\xa2\x36\x77\x53\x64\xca\x61\xcb\x99\x99\xb2\x4a\x5d\xc9\x19\x69\x1e\xd0\x37\x53\xca\x25\x6b\x60\xd9\xc0\x37\x59\x1c\x1c\x2a\xe1\x7f\x6b\xb1\x79\xf6\x85\x0d\x49\x1c\x29\x58\xa2\xf2\x67\xed\xfe\xf8\x71\x2f\x8f\x26\xc3\x2b\x29\x84\x61\x29\x0b\x3f\x05\xab\x80\xa3\x00\x52\x86\x43\x79\x04\x05\x60\xc3\x9c\x87\x98\x21\x0f\x39\xbd\xb4\x92\xbe\x84\x35\xcc\xe4\x17\x8a\x42\x07\x7e\x06\x41\xf0\x39\x02\x84\x21\x07\x45\x80\xa1\xd0\xdf\x57\x83\xeb\x40\xda\xaa\x10\x58\x0d\x1d\x25\x30\x80\xa0\xaf\xb9\xd9\x4d\x93\xc3\x25\x6a\x6d\x81\x57\xe2\x3e\x39\x3c\x25\x60\x8d\xa4\xbf\x4f\xdb\x8b\x22\x55\xd2\x93\xfa\xc1\x9d\xc9\x37\xb6\xc4\xce\x94\x88\x47\x34\x42\x25\x92\xcb\x93\x7e\xb9\xaa\x20\x92\x78\xd7\x71\xa8\x0a\x30\x91\x17\x5d\x89\x5b\x94\x88\xe8\xaa\x3e\x1b\x0c\x82\xad\xb4\xe6\x73\xac\xba\x47\x53\xfb\xca\x57\x97\x07\xd0\xe8\x00\xf4\xd6\xff\x65\xaa\xff\xe7\x68\xff\x1f\x2a\xff\xcd\xba\x7f\x8b\xea\x7f\xb6\xe6\x2f\x5d\xf1\xbf\x9c\xde\x2f\x55\xed\x97\xac\xf5\xcb\x54\xfa\x2f\xa6\xf3\x4b\x51\xf9\x2f\xa5\xf1\xcb\x57\xf8\x4b\x83\x95\xc7\xe7\x0d\x06\xab\x30\x75\x97\x3e\x64\xe3\xf4\x0b\x57\x34\x35\x4c\x71\xcc\x84\x6c\x3e\x8e\xc8\x81\xb3\xda\xa7\x68\x66\xac\x1a\xce\xc2\x9a\x5b\x60\x32\x5b\x98\x1e\x80\xda\xd4\x35\x34\x6d\x32\xf7\xf4\xa9\x07\x3c\x67\x01\x2c\xd3\x9c\x41\x30\x9b\xcf\xda\x8d\xd5\xe9\xcc\x58\x18\x13\x6b\xd6\xdb\x58\xfd\xea\xbc\xdf\x3f\xdc\xee\xee\x9e\x9d\x9e\xc6\xaa\x18\x83\x23\x4b\x55\x33\x35\x7d\x3e\x5b\x18\x1f\x79\xaa\xd7\x6f\xf7\x9b\xc5\xdb\x93\xfe\x2d\x06\x3f\xa3\xb5\x7b\x13\xbc\xd8\xcf\xd7\xda\xed\xc3\xef\xd3\xbb\xf7\xcd\xbb\x04\x7f\x35\x6f\xc0\x89\x06\xeb\x51\x6f\x7a\x58\xab\xf7\x95\x9d\x2b\xd5\x62\x3d\x6a\xcc\x09\xdb\x39\xfd\xbe\x81\x3c\x5b\x35\xc5\x93\x6d\xa8\x56\x51\xcf\xb6\x52\x53\x10\xa9\x26\x6a\x0a\x29\xc3\x3e\x4d\x91\xa4\x18\xa7\x39\xd4\x00\xcb\x34\x85\xb8\x84\x59\x9a\x21\xcb\xb7\x49\x5b\xbe\x38\x33\xc8\x20\x9d\x8f\x27\x8b\xf1\x64\xfa\xa0\xcd\x97\x53\x7d\xa9\x2f\xfa\x1b\xa4\xb3\x4e\x83\x54\xd7\x1f\x34\x63\xa9\x59\x4b\xd3\xec\x6f\x90\xf6\xea\x68\x97\x35\xda\x02\xd2\xdf\x14\xed\x0d\xf2\xb1\x1d\xda\x1f\xa2\xd5\x08\xed\x35\x26\x1d\x16\x68\xfd\x99\x5b\xf7\x40\x8d\x56\x0f\x54\xb3\x24\x9a\xa0\xfa\xff\x4c\xd0\x03\x13\xf4\xc8\xb4\x1c\xe6\x81\x1e\x67\x0e\x32\x41\x7b\x2d\xbd\x53\xec\xcf\xb6\x6f\x00\xca\x35\x3e\xdb\x98\x64\x58\x9e\x6d\xf8\x72\xcc\xce\x36\x06\xa9\x36\x67\x1b\xd1\x05\x0c\xce\x76\x3a\x29\xd6\x66\x17\xc5\x40\x53\xb3\x03\x5e\xa2\x9d\xd9\xce\x24\xcd\xc8\xec\xa2\x19\x6e\x61\xb6\x31\x48\x30\x2f\x5b\xe1\x07\xd9\x96\x6d\xc8\xe7\x1b\x96\x6d\xa8\x03\xad\xca\xae\x83\x49\x86\x49\xd9\xc5\x31\xd8\x9e\xec\x22\x18\x66\x4c\xb6\xa1\x0f\xb6\x24\x7b\xfc\x8c\x41\xa6\x19\xd9\x83\x4e\x86\x0d\xd9\x4d\x33\xc4\x80\x6c\x43\x1f\x6e\x3d\x76\xff\x04\x7c\xa0\xe9\xd8\x4e\x30\xc4\x6e\x6c\x43\x1e\x68\x34\xb6\x42\xcb\xb5\x18\xdb\xa8\x2e\x68\x2e\x76\xfe\xc2\x65\xa8\xad\xd8\x46\x20\xc7\x50\xec\xf8\xc5\xcc\x30\x2b\xb1\xd7\xcf\x71\x06\x9a\x88\xad\x1c\x52\xec\xc3\x1e\x0c\xe7\x1a\x87\x6d\xd0\xe7\x5a\x86\x9d\x37\xdb\x30\xb3\xb0\xb5\xc9\x27\xd8\x84\x75\xd9\xb5\x59\xcf\x3e\x4b\xcd\x96\xaa\x65\x9f\xa6\x64\x77\x1b\x85\x8d\x2a\xf6\x50\xc3\xf0\xa0\x11\xf2\xf4\xeb\x4b\xa8\xd7\x92\xb4\x6b\x69\xca\xb5\x1c\xdd\xfa\x02\xaa\xf5\x40\xcd\x5a\xbe\x62\x2d\x53\xaf\x16\xa6\xdf\xa7\xfd\x7f\x03\x00\x00\xff\xff\x0a\xd2\xc9\x46\x99\x48\x00\x00") + +func fixturesSrcDLookoutTestFixturesPr26V0JsonBytes() ([]byte, error) { + return bindataRead( + _fixturesSrcDLookoutTestFixturesPr26V0Json, + "fixtures/src-d.lookout-test-fixtures.pr-26-v0.json", + ) +} + +func fixturesSrcDLookoutTestFixturesPr26V0Json() (*asset, error) { + bytes, err := fixturesSrcDLookoutTestFixturesPr26V0JsonBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "fixtures/src-d.lookout-test-fixtures.pr-26-v0.json", size: 18585, mode: os.FileMode(420), modTime: time.Unix(1536310226, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -727,6 +769,8 @@ var _bindata = map[string]func() (*asset, error){ "fixtures/src-d.lookout-test-fixtures.pr-2-v0.json": fixturesSrcDLookoutTestFixturesPr2V0Json, "fixtures/src-d.lookout-test-fixtures.pr-20-v0-compare.json": fixturesSrcDLookoutTestFixturesPr20V0CompareJson, "fixtures/src-d.lookout-test-fixtures.pr-20-v0.json": fixturesSrcDLookoutTestFixturesPr20V0Json, + "fixtures/src-d.lookout-test-fixtures.pr-26-v0-compare.json": fixturesSrcDLookoutTestFixturesPr26V0CompareJson, + "fixtures/src-d.lookout-test-fixtures.pr-26-v0.json": fixturesSrcDLookoutTestFixturesPr26V0Json, "fixtures/src-d.lookout-test-fixtures.pr-3-v0-compare.json": fixturesSrcDLookoutTestFixturesPr3V0CompareJson, "fixtures/src-d.lookout-test-fixtures.pr-3-v0.json": fixturesSrcDLookoutTestFixturesPr3V0Json, "fixtures/src-d.lookout-test-fixtures.pr-4-v0-compare.json": fixturesSrcDLookoutTestFixturesPr4V0CompareJson, @@ -798,6 +842,8 @@ var _bintree = &bintree{nil, map[string]*bintree{ "src-d.lookout-test-fixtures.pr-2-v0.json": &bintree{fixturesSrcDLookoutTestFixturesPr2V0Json, map[string]*bintree{}}, "src-d.lookout-test-fixtures.pr-20-v0-compare.json": &bintree{fixturesSrcDLookoutTestFixturesPr20V0CompareJson, map[string]*bintree{}}, "src-d.lookout-test-fixtures.pr-20-v0.json": &bintree{fixturesSrcDLookoutTestFixturesPr20V0Json, map[string]*bintree{}}, + "src-d.lookout-test-fixtures.pr-26-v0-compare.json": &bintree{fixturesSrcDLookoutTestFixturesPr26V0CompareJson, map[string]*bintree{}}, + "src-d.lookout-test-fixtures.pr-26-v0.json": &bintree{fixturesSrcDLookoutTestFixturesPr26V0Json, map[string]*bintree{}}, "src-d.lookout-test-fixtures.pr-3-v0-compare.json": &bintree{fixturesSrcDLookoutTestFixturesPr3V0CompareJson, map[string]*bintree{}}, "src-d.lookout-test-fixtures.pr-3-v0.json": &bintree{fixturesSrcDLookoutTestFixturesPr3V0Json, map[string]*bintree{}}, "src-d.lookout-test-fixtures.pr-4-v0-compare.json": &bintree{fixturesSrcDLookoutTestFixturesPr4V0CompareJson, map[string]*bintree{}}, diff --git a/vendor/github.com/src-d/lookout-test-fixtures/main.go b/vendor/github.com/src-d/lookout-test-fixtures/main.go index 85847500..a2366426 100644 --- a/vendor/github.com/src-d/lookout-test-fixtures/main.go +++ b/vendor/github.com/src-d/lookout-test-fixtures/main.go @@ -128,6 +128,15 @@ var fixtures = Fixtures{ }, CurrentRevision: 0, }, + { + Name: "pr-from-fork", + URL: PullRequestURL{ + Owner: "src-d", + Repo: "lookout-test-fixtures", + Number: 26, + }, + CurrentRevision: 0, + }, } // PullRequestURL is a struct with information about a pull request URL: From 4020ce15cc8199569d30417a060a35f7b1d542f5 Mon Sep 17 00:00:00 2001 From: David Pordomingo Date: Wed, 27 Feb 2019 17:23:09 +0100 Subject: [PATCH 2/2] Add tests for PR from fork Signed-off-by: David Pordomingo --- cmd/server-test/common_test.go | 58 +++++++++++++++++++++++- cmd/server-test/dummy_analyzer_test.go | 2 - cmd/server-test/review_from_fork_test.go | 49 ++++++++++++++++++++ 3 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 cmd/server-test/review_from_fork_test.go diff --git a/cmd/server-test/common_test.go b/cmd/server-test/common_test.go index c76068a1..6fb918d9 100644 --- a/cmd/server-test/common_test.go +++ b/cmd/server-test/common_test.go @@ -7,15 +7,20 @@ import ( "encoding/json" "fmt" "io" + "strconv" "github.com/src-d/lookout" - fixtures "github.com/src-d/lookout-test-fixtures" "github.com/src-d/lookout/util/cmdtest" "github.com/src-d/lookout/util/grpchelper" - log "gopkg.in/src-d/go-log.v1" + + "github.com/src-d/lookout-test-fixtures" + "gopkg.in/src-d/go-git.v4/plumbing" + "gopkg.in/src-d/go-log.v1" "gopkg.in/src-d/lookout-sdk.v0/pb" ) +const dummyConfigFile = "../../fixtures/dummy_config.yml" + type IntegrationSuite struct { cmdtest.IntegrationSuite r io.Reader @@ -76,6 +81,55 @@ func startMockAnalyzer(ctx context.Context, a mockAnalyzer) error { return nil } +func castPullRequest(fixture *fixtures.Fixture) (*jsonReviewEvent, error) { + pr := fixture.GetPR() + + baseRepoCloneUrl := pr.GetBase().GetRepo().GetCloneURL() + baseRepoInfo, err := pb.ParseRepositoryInfo(baseRepoCloneUrl) + if err != nil { + return nil, err + } + + headRepoCloneUrl := pr.GetHead().GetRepo().GetCloneURL() + headRepoInfo, err := pb.ParseRepositoryInfo(headRepoCloneUrl) + if err != nil { + return nil, err + } + + event := pb.ReviewEvent{} + + event.Provider = "github" + event.InternalID = strconv.FormatInt(pr.GetID(), 10) + + event.Number = uint32(pr.GetNumber()) + event.RepositoryID = uint32(pr.GetHead().GetRepo().GetID()) + + sourceRefName := fmt.Sprintf("refs/heads/%s", pr.GetHead().GetRef()) + event.Source = lookout.ReferencePointer{ + InternalRepositoryURL: headRepoInfo.CloneURL, + ReferenceName: plumbing.ReferenceName(sourceRefName), + Hash: pr.GetHead().GetSHA(), + } + + baseRefName := fmt.Sprintf("refs/heads/%s", pr.GetBase().GetRef()) + event.Base = lookout.ReferencePointer{ + InternalRepositoryURL: baseRepoInfo.CloneURL, + ReferenceName: plumbing.ReferenceName(baseRefName), + Hash: pr.GetBase().GetSHA(), + } + + headRefName := fmt.Sprintf("refs/pull/%d/head", pr.GetNumber()) + event.Head = lookout.ReferencePointer{ + InternalRepositoryURL: baseRepoInfo.CloneURL, + ReferenceName: plumbing.ReferenceName(headRefName), + Hash: pr.GetHead().GetSHA(), + } + + event.IsMergeable = pr.GetMergeable() + + return &jsonReviewEvent{ReviewEvent: &event}, nil +} + var longLineFixture = fixtures.GetByName("new-go-file-too-long-line") var successEvent = &jsonReviewEvent{ diff --git a/cmd/server-test/dummy_analyzer_test.go b/cmd/server-test/dummy_analyzer_test.go index 73c3ebf3..fe815838 100644 --- a/cmd/server-test/dummy_analyzer_test.go +++ b/cmd/server-test/dummy_analyzer_test.go @@ -11,8 +11,6 @@ import ( "gopkg.in/src-d/lookout-sdk.v0/pb" ) -const dummyConfigFile = "../../fixtures/dummy_config.yml" - type DummyIntegrationSuite struct { IntegrationSuite } diff --git a/cmd/server-test/review_from_fork_test.go b/cmd/server-test/review_from_fork_test.go new file mode 100644 index 00000000..65d9805d --- /dev/null +++ b/cmd/server-test/review_from_fork_test.go @@ -0,0 +1,49 @@ +// +build integration + +package server_test + +import ( + "testing" + "time" + + "github.com/src-d/lookout-test-fixtures" + "github.com/stretchr/testify/suite" +) + +func TestReviewPrFromForkIntegrationSuite(t *testing.T) { + suite.Run(t, new(reviewPrFromForkIntegrationSuite)) +} + +type reviewPrFromForkIntegrationSuite struct { + IntegrationSuite +} + +func (suite *reviewPrFromForkIntegrationSuite) SetupTest() { + suite.ResetDB() + + suite.StoppableCtx() + suite.r, suite.w = suite.StartLookoutd(dummyConfigFile) + + suite.StartDummy("--files") + suite.GrepTrue(suite.r, `msg="connection state changed to 'READY'" addr="ipv4://localhost:9930" analyzer=Dummy`) +} + +func (suite *reviewPrFromForkIntegrationSuite) TearDownTest() { + // TODO: for integration tests with RabbitMQ we wait a bit so the queue + // is depleted. Ideally this would be done with something similar to ResetDB + time.Sleep(5 * time.Second) + suite.Stop() +} + +func (suite *reviewPrFromForkIntegrationSuite) TestReview() { + fixture := fixtures.GetByName("pr-from-fork") + jsonReviewEvent, err := castPullRequest(fixture) + suite.NoError(err) + + expectedComments := []string{ + `{"analyzer-name":"Dummy","file":"javascript.js",`, + } + + suite.sendEvent(jsonReviewEvent.String()) + suite.GrepAll(suite.r, expectedComments) +}