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
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
lalaition
2ba61a21a0
Use Attoparsec to parse git output instead of manually splitting Text
2019-06-05 20:07:48 -06:00
Patrick Thomson
0e13a4c091
These can be in parallel because we're not changing the cwd.
2019-05-28 15:49:43 -04:00
Patrick Thomson
e4143aaa34
slightly less heinous implementation
2019-05-28 15:43:14 -04:00
Patrick Thomson
e77d723859
try to fix the builders
2019-05-28 15:34:31 -04:00
Patrick Thomson
00e7ceb883
Fix dead imports.
2019-05-28 14:58:37 -04:00
Patrick Thomson
a410300492
Add tests for readBlobsFromGitRepo.
...
This is part of the critical path for repository tagging, so we should
test it to make sure it doesn't explode. This introduces a test that
creates a temporary git repo and queries it to make sure that adding
and then reading from a blob works properly.
2019-05-28 14:54:18 -04:00
Patrick Thomson
8e0962712e
legacyMakeBlob => makeBlob. Also unpack File.
2019-05-24 11:52:35 -04:00
Patrick Thomson
63a7f117eb
If we're not gonna rename File, give Blob the logical field name.
2019-05-21 22:58:25 -04:00
Patrick Thomson
b8d3a06a67
Fix all the test cases.
2019-05-21 22:28:32 -04:00
Timothy Clem
7840aec67b
Fix specs
2019-04-12 12:50:30 -07:00
Timothy Clem
8b9bc575b6
Fix up tests
2019-03-25 13:14:04 -07:00
Max Brunsfeld
3249307ccd
Use Tree-sitter's built-in timeout API instead of a separate timeout thread
2019-03-18 16:30:15 -07:00
Patrick Thomson
060c8f50ff
Refactor: use pattern synonyms to construct BlobPairs.
...
The `BlobPair` type is defined as an alias for `Join These Blob`. Though
this sacrifices a degree of type safety, it's extremely convenient, as
you can get to a Functor and Bifunctor instance very quickly.
Pattern-matching on `BlobPair` is less elegant though, as it requires
a nested Join then a match on `These`, which is not immediately
indicative of what a given pair might do.
This adds pattern synonyms for the `Inserting`, `Deleting`, and
`Diffing` cases, and removes the less-expressive functions returning such.
2019-03-01 11:19:24 -05:00
Timothy Clem
cc78c0d8d5
Case Api as generated
2019-02-12 12:49:34 -08:00
Timothy Clem
ce04fa8f12
Refactor runTask
2019-02-01 15:04:23 -08:00
Timothy Clem
d3330aa9f3
Dedicated input types for Blob and BlobPair
2019-01-28 14:37:50 -08:00
Timothy Clem
6befe07ea3
Remove rest of old diff renderers and Diff.hs
2019-01-22 12:05:45 -07:00
Timothy Clem
5e6d0240b2
Use the new diff api from the CLI, fix up tests again
2019-01-22 11:42:06 -07:00
Timothy Clem
154e0388af
Goodbye Semantic.Parse
2019-01-18 16:04:23 -08:00
Timothy Clem
dad86f11e7
No more TermRenderer and all tests passing
2019-01-18 15:54:55 -08:00
Timothy Clem
f23110a73a
Transition sexpression term rendering
2019-01-18 09:29:51 -08:00
Timothy Clem
15643e1d4f
Switch over ToCDiffRenderer (will fix the tests next)
2019-01-17 15:58:49 -08:00
Timothy Clem
d8ef1c1f40
Fix up tests
2019-01-17 15:36:56 -08:00
Timothy Clem
e3afd9d684
Symbol rendering is entirely on the new path
2019-01-17 15:13:39 -08:00
Patrick Thomson
f750f2952a
Remove 'both' function.
2019-01-10 15:53:15 -05:00
Timothy Clem
2e1626d949
Make symbols output also return partial results
2018-11-13 11:02:23 -08:00
Patrick Thomson
ef696d3c41
Split up Semantic.IO.
...
This looks like a big patch, but it's very straightforward: no
behavior has changed.
After the umpteenth time spent hitting a compile error because I
passed a `FilePath` rather than a `File` to `readBlobFromPath`, I
decided to finally make the needed refactors to Semantic.IO, and to
split off the `File` type and `Files` effect. This patch:
* adds the `MonadIO` class to `Prologue`'s export list
* moves `File` into `Data.File`
* moves `Handle` into `Data.Handle`
* moves `Files` into `Semantic.Task.Files`
* moves functions for reading blobs into `Data.Blob`
* keeps general IO helpers in Semantic.IO
* renames `readFile` to `readBlobFromFile`
* renames `readBlobFromPath` to `readBlobFromFile'`
This should have a positive effect on compile times and ease of
navigation throughout the codebase.
2018-10-23 15:37:49 -04:00
Timothy Clem
2d1a8cc7e7
Express this a bit more elegantly
2018-09-26 16:55:34 -05:00
Timothy Clem
505c61959e
This goes back to throwing now
2018-09-25 14:04:58 -05:00
Timothy Clem
099faacbce
Re-work these tests now that we return if parse fails
2018-08-30 12:51:29 -07:00
Patrick Thomson
695d280f50
bump up the cancelable parsing timeout
2018-07-13 15:15:10 -04:00
Timothy Clem
de48b8cfea
Merge remote-tracking branch 'origin/master' into import-graph-mk2
2018-06-18 14:58:50 -07:00
Timothy Clem
039d43e523
🔥 the --tags output and associated code
2018-06-18 11:36:31 -07:00
Patrick Thomson
659500551c
Merge remote-tracking branch 'origin/master' into import-graph-mk2
2018-06-15 19:30:50 -04:00
Timothy Clem
23390f7789
Refactor Stats addr
2018-06-15 10:31:51 -07:00
Timothy Clem
21e3f69110
Just one defaultConfig
2018-06-15 10:17:02 -07:00
Timothy Clem
cff0e073ae
Comment typo
2018-06-13 17:48:22 -07:00
Timothy Clem
9b45928227
Fix up test/spec
2018-06-13 17:03:15 -07:00
Patrick Thomson
19e7ff7510
Reinstate import graph functionality.
2018-06-13 12:47:35 -04:00
Patrick Thomson
36d5b7562a
Revert "gRPC import graph"
2018-06-13 12:34:35 -04:00
Patrick Thomson
c563747f87
tests compile now
2018-06-12 12:09:40 -04:00
Patrick Thomson
0fdef390b2
Relax the timeout in the cancelable parsing test.
...
If this keeps whining, I'll remove the test, but let's try tripling
the timeout interval first.
2018-06-05 13:13:08 -04:00
Patrick Thomson
10a863f57c
Fix tests
2018-06-04 18:26:47 -04:00
Timothy Clem
359031d777
s/Program/Statements in all of the tests
2018-06-01 11:44:03 -07:00
Timothy Clem
a4e0ca6686
Fix tests and use fixtures that are easier to maintain
2018-05-31 17:20:51 -07:00
Timothy Clem
9baea34f5d
Generically derive ToJSONFields1 for basically everything
2018-05-31 10:56:04 -07:00
Timothy Clem
ddc4923e88
Fix tests
2018-05-30 09:53:01 -07:00
Timothy Clem
2d08451d87
Call [] Statements
2018-05-29 14:25:31 -07:00
Patrick Thomson
f563a2c808
forgot a do
2018-05-22 17:25:17 -04:00
Patrick Thomson
c8d5a8d231
add test for cancelling in-flight parsers
2018-05-22 17:01:17 -04:00
Patrick Thomson
949b9be418
add spec
2018-05-22 16:53:03 -04:00
Rob Rix
367982bc8d
Don’t use SomeRenderer in the CLI spec.
2018-05-14 18:44:19 -04:00
Rob Rix
84ea29a60b
Fix the tests.
2018-05-14 18:39:41 -04:00
Rob Rix
f047b57ecc
Encoding order is significant.
2018-05-14 16:18:57 -04:00
Rob Rix
5bae88724b
Move the diffTermPair tests into the interpreter spec.
2018-05-14 16:09:39 -04:00
Rob Rix
b979e9757c
Run the builders.
2018-05-14 10:28:01 -04:00
Rob Rix
fc70382d5b
Correct the handle types.
2018-05-14 10:27:58 -04:00
Rob Rix
0d0aeafdc5
Add an openFileForReading helper for the tests.
2018-05-14 10:23:29 -04:00
Rob Rix
a9d3b29e02
We expect a ByteString here.
2018-05-11 15:31:28 -04:00
Timothy Clem
e2722ea7e9
Construct File(s) here too
2018-04-20 16:34:37 -07:00
Timothy Clem
f96db32268
Few more test fixes
2018-04-20 16:30:06 -07:00
Timothy Clem
7c2a8a464e
Couple of test fixes
2018-04-20 16:27:53 -07:00
Timothy Clem
2617b3a4a6
Move cli fixtures around
2018-04-18 13:55:21 -07:00
Charlie Somerville
cdb5672b27
test: fix expected output for parse and diff cli tests
2018-04-16 16:19:23 +10:00
Timothy Clem
c6cdfc4958
Fix CLI specs
2018-04-16 16:19:23 +10:00
Patrick Thomson
1138bd3141
Fix tests.
2018-04-04 12:53:54 -04:00
Timothy Clem
bbff8d45ed
More spec import cleanup
2018-03-13 11:10:50 -07:00
Patrick Thomson
da2a3fc7a8
Initial pass fixing errors raised by weeder
.
...
This fixes a lot of unnecessary exports in the specs, removes a couple
otiose imports (comonads and semigroups are provided by base, I beleive),
and removes a duplicated function.
2018-03-09 12:07:34 -05:00
joshvera
e32961edde
Rename semantic-diff to semantic
2018-02-26 13:16:56 -05:00
Timothy Clem
435e5fb91b
Test out tags output too so we don't break it
2018-01-17 13:31:56 -08:00
Timothy Clem
198c31e9f0
Fix up test output, test symbols output
2018-01-17 12:59:08 -08:00
Timothy Clem
6517970f8a
Symbol rendering (like tags, but new hotness)
2018-01-17 12:54:17 -08:00
Timothy Clem
02c18b45fd
Remove metadata from response
2018-01-08 09:36:17 -08:00
Timothy Clem
875ff4dda9
Merge remote-tracking branch 'origin/master' into diff-api-updates
2017-12-19 11:32:26 -08:00
Timothy Clem
74f7f4afd9
Diff JSON output includes path key now too
2017-12-18 15:27:53 -08:00
Rob Rix
a112fca6f3
Merge branch 'master' into 🔥 -monolithic-syntax
2017-12-18 15:07:00 -05:00
Timothy Clem
82ce34a00e
Revert "Keep backwards compat with filePath for now"
...
This reverts commit d9b427d264d05db8b62f83b8553b5b9250d50cb4.
2017-12-14 13:49:43 -08:00
Timothy Clem
a50b55b490
Keep backwards compat with filePath for now
2017-12-14 11:42:22 -08:00
Timothy Clem
44d9abc9b2
Fix up expected parse/diff JSON output
2017-12-14 10:11:14 -08:00
Timothy Clem
8e8d2fb41e
Merge remote-tracking branch 'origin/master' into bidistribute
2017-12-13 09:14:05 -08:00
Timothy Clem
dce9ffa61c
Fix up expected JSON output in specs
2017-12-12 11:42:04 -08:00
Timothy Clem
47ce5a63c1
Test null on both sides in JSON payload
2017-12-11 12:59:14 -08:00
Timothy Clem
deb7ebadd2
🔥 blobOid too
2017-12-11 11:03:00 -08:00
Timothy Clem
ad377910f9
Completely remove blobKind
2017-12-11 10:54:18 -08:00
Timothy Clem
8ce213fc44
No longer need to track blobKind in Maybe
2017-12-11 10:51:52 -08:00
Timothy Clem
844fc3f8b5
Use Join These Blob instead
2017-12-11 09:09:07 -08:00
Timothy Clem
24d98ad71c
Fix up tests
2017-12-10 08:46:17 -08:00
Rob Rix
f1c4b58797
Merge branch 'musical-modules' into 🔥 -monolithic-syntax
2017-11-28 11:59:38 -05:00
Rob Rix
87d533cc2b
Rename Language to Data.Language.
2017-11-27 14:17:48 -05:00
Rob Rix
a079638c5b
Rename the Semantic spec.
2017-11-27 14:00:53 -05:00
Rob Rix
4b06df7db4
Rename the Stat spec.
2017-11-27 13:58:23 -05:00
Rob Rix
59166b50bb
Rename the CLI spec.
2017-11-27 13:57:25 -05:00
Rob Rix
b98375b58f
Rename the IO spec.
2017-11-27 13:52:48 -05:00
Timothy Clem
87bd442c96
Refactor a bit more into Semantic.Queue
...
Also, docs and record prefixes
2017-10-05 10:26:16 -07:00
Timothy Clem
b5c63fc78c
Minor spec name fixes
2017-10-04 14:21:06 -07:00
Timothy Clem
c7f4ae005b
Test actual sending of data
2017-10-04 11:40:39 -07:00