1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00
Commit Graph

4117 Commits

Author SHA1 Message Date
Patrick Thomson
b1a2b85d87 Merge remote-tracking branch 'origin/master' into machines-to-streaming 2019-06-20 14:09:39 -04:00
Patrick Thomson
a5a349ba23 Remove unused liftCons5 function. 2019-06-20 12:59:40 -04:00
Patrick Thomson
17407c0c9d Initial port from machines to streaming. 2019-06-20 09:41:27 -04:00
Patrick Thomson
669ee584df Quiesce the last few warnings from the tests. 2019-06-20 01:50:32 -04:00
Patrick Thomson
086947ade5 Add golden tests for parse --proto-symbols output.
This should help us ensure that we don't break CLI output, since our
CLI is an API.

This was made super-easy thanks to `tasty-golden`. I literally added
those two lines of code and it automatically created the reference
`.protobuf.bin` files. Slick as hell.
2019-06-20 01:33:51 -04:00
Patrick Thomson
b17a2c0ee8 Better nomenclature. 2019-06-19 17:56:37 -04:00
Patrick Thomson
4de36c5f0e Rewrite the Stat tests so they're not racy. 2019-06-19 17:54:53 -04:00
Patrick Thomson
0a3c11d5db Better formatting by keeping description lines shorter 2019-06-19 17:42:53 -04:00
Patrick Thomson
bb86469f56 Fix unused imports. 2019-06-19 17:35:37 -04:00
Patrick Thomson
43e3fb4533 Remove unnecessary use of parallel. 2019-06-19 17:22:09 -04:00
Patrick Thomson
6306f07cc1 Better story for handling JSON exceptions. 2019-06-19 17:14:52 -04:00
Patrick Thomson
6d599a5c7b Forgot that Exception doesn't imply Eq. 2019-06-19 12:58:40 -04:00
Patrick Thomson
8ae90e53c5 Quiet debug spew in specs.
This console barf makes reading though backscrolls unpleasant. Using
Shelly rather than an abomination of a `system` call and adding a
helper function to parse files quietly improved the situation greatly.

This also contains changes to Util that make the file significantly
easier to navigate, thanks to the power of `PartialTyepSignatures`.

Fixes #140.
2019-06-19 12:09:37 -04:00
Jan Hrček
ade8e8b265 Use isJust where applicable 2019-06-16 17:14:03 +02:00
Jan Hrček
915937c4be Fix some hlint warnings 2019-06-16 13:40:13 +02:00
Patrick Thomson
93cb2d3f07
Merge branch 'master' into fix-test-warnings 2019-06-15 09:04:05 -04:00
Weerasak Chongnguluam
32ba68e2d1 Remove unused NamedFieldPuns extension in Data.Source.Spec 2019-06-15 16:57:16 +07:00
Jan Hrček
ec4248cbb4 Fix warnings in tests
27 [-Wunused-matches]
 7 [-Wmissing-export-lists]
 6 [-Wunused-imports]
 5 [-Wmissing-signatures]
 2 [-Wincomplete-uni-patterns]
 1 [-Wunused-top-binds]
 1 [-Wtype-defaults]
2019-06-15 08:56:59 +02:00
Rob Rix
30fd1b4abf
Merge branch 'master' into remove-orphan-bytestring-listable 2019-06-14 16:34:13 -04:00
Patrick Thomson
02b36d2570 Port Leancheck+Hspec properties to Tasty.Hedgehog. 2019-06-14 12:33:28 -04:00
Patrick Thomson
e1d94f07d1 Remove Listable instance for Source.
This was created with a whole mess of Leancheck combinators. A
Hedgehog approach makes things easier.
2019-06-14 11:53:42 -04:00
Jan Hrček
a644674a54 Fix -Wredundant-constraints warning 2019-06-14 15:56:07 +02:00
Jan Hrček
8959d4d1d6 Fix -Wdodgy-imports warnings 2019-06-14 15:46:06 +02:00
Patrick Thomson
6edabbbecc
Merge branch 'master' into cleaner-implicit-params 2019-06-12 17:21:01 -04:00
Patrick Thomson
d50c08152b forgot one last .json file 2019-06-12 16:45:33 -04:00
Patrick Thomson
a4652120a7 Fix test cases for builders (which don't have jd). 2019-06-12 16:40:28 -04:00
Patrick Thomson
946c561725 Merge remote-tracking branch 'origin/tasty-golden-scrumptious-tests' into cleaner-implicit-params 2019-06-12 15:01:42 -04:00
Patrick Thomson
2795bc7357 somehow lost this -O0 2019-06-12 14:50:18 -04:00
Patrick Thomson
bfdb4a1de7 Clean up specs with some implicit parameters.
Test cases are a good use of `-XImplicitParams`, because often one
finds oneself plumbing a bunch of parameters obtained from IO through
a dozen layers of pure functions. Implicit parameters make this sort
of passing significantly easier.

Fixes #128.
2019-06-12 13:55:14 -04:00
Patrick Thomson
7d88f930cb Fix sentence fragment. 2019-06-12 13:27:34 -04:00
Patrick Thomson
6a15695195 Even more unused imports. 2019-06-12 13:16:34 -04:00
Patrick Thomson
b8cb9d1bfa Remove unused imports. 2019-06-12 12:52:11 -04:00
Patrick Thomson
14bbf6856b Kill verbatim, since we have more principled golden tests now. 2019-06-12 12:46:30 -04:00
Patrick Thomson
3363eccfdf Better comments and test labels. 2019-06-12 12:29:11 -04:00
Patrick Thomson
acbacbe779 Use golden tests for the CLI. 2019-06-12 12:26:37 -04:00
Patrick Thomson
0292506ebd Account for occasional race conditions in testsForLanguage.
Not sure where this is coming from, but we don't want the builders to
get stuck.
2019-06-12 12:26:02 -04:00
Patrick Thomson
6a24b9c793 Fix whitespace changes in hash fixture. 2019-06-12 11:34:54 -04:00
Patrick Thomson
99c4bb21f8 Overhaul test harnesses and add tasty bounds. 2019-06-12 11:30:20 -04:00
Patrick Thomson
2754e26e9a Port over Integration.hs. 2019-06-12 11:04:42 -04:00
Patrick Thomson
32a581f31a More robust example parsing. 2019-06-11 14:54:48 -04:00
Patrick Thomson
4853d9796f Oops. 2019-06-11 11:23:56 -04:00
Patrick Thomson
a157e4a1b4 Don't clutter the workdir. 2019-06-11 11:22:04 -04:00
Patrick Thomson
6685ef1425
Merge branch 'master' into use-hackage-not-submodules 2019-06-10 20:22:44 -04:00
Patrick Thomson
7aeb88227a Just don't optimize these specs for now. 2019-06-10 18:53:20 -04:00
Patrick Thomson
aa02a62f76
Merge branch 'master' into gitparsing 2019-06-10 12:19:37 -04:00
lalaition
e4319224e3 Cleaned up parser 2019-06-09 14:11:58 -06:00
lalaition
be96fcf52f Refactored code to be in line with suggestions 2019-06-06 21:24:22 -06:00
joshvera
7d49193f3b Add tsx tests 2019-06-06 19:11:29 -04:00
joshvera
237c4d6b3f Move jsx tests to tsx directory 2019-06-06 18:44:15 -04:00
Rob Rix
fb845b08a4
Victory by fiat! 2019-06-06 11:34:54 -04:00