1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
Commit Graph

161 Commits

Author SHA1 Message Date
Timothy Clem
ed5f9eb7e8 Return shortened errors in toc summary JSON response 2017-08-25 13:07:51 -07:00
Timothy Clem
97bd03543a Introduce a dedicated term equivalency check for ses 2017-08-25 12:39:43 -07:00
Timothy Clem
28aa9405e1 Fix up some expected output for new shape of Method 2017-08-24 11:46:26 -07:00
Rob Rix
390f237a38 Section ranges now include their children. 2017-08-14 11:51:55 -04:00
Yuki Izumi
2f99303bf6 Update test output (heading excludes "## ") 2017-08-10 14:18:07 +10:00
Rob Rix
7da8799e08 🔥 Prologue & protolude. 2017-07-28 14:37:02 -04:00
Rob Rix
3646ab2b15 Renderers produce Output. 2017-07-28 11:23:55 -04:00
Rob Rix
ba68f866fd Remove the leaf type parameter from SyntaxDiff. 2017-07-23 15:59:02 -04:00
Rob Rix
aa8ebfcd73 Remove the leaf type parameter from SyntaxTerm. 2017-07-23 15:56:08 -04:00
Rob Rix
0ba3264f32 Remove the leaf type parameter from Syntax. 2017-07-23 15:46:29 -04:00
Rob Rix
201f9358f8 Correct the tests. 2017-07-19 20:01:59 -04:00
Rick Winfrey
6fc07e18ce Add language field to errors test 2017-07-19 10:44:38 -07:00
Rick Winfrey
607392ded1 Add language to ToC spec tests 2017-07-19 10:34:48 -07:00
Timothy Clem
c314330e14 Handle === style markdown headings 2017-07-11 09:37:24 -07:00
Timothy Clem
ef0810d3db Test markdown toc summary rendering 2017-07-10 12:54:03 -07:00
Rob Rix
a106d27eb9 Rename Source.length to sourceLength. 2017-06-24 10:32:26 -04:00
Rob Rix
bed2c473b2 Rename SourceBlob to Blob. 2017-06-24 10:15:31 -04:00
Rob Rix
fc51c92425 Move SourceBlob into Data.Blob. 2017-06-24 10:09:50 -04:00
Rob Rix
fc09d74b73 Rename the Source module to Data.Source. 2017-06-24 09:59:41 -04:00
Rob Rix
4097d4bfc0 Rename SourceSpan to Span and SourcePos to Pos. 2017-06-24 09:30:34 -04:00
Timothy Clem
fecf3d4b41 Add a test for file that starts with newline 2017-06-14 11:01:12 -06:00
Rob Rix
99197b96d9 JSONSummary holds Text rather than a Category. 2017-06-05 12:45:18 -04:00
Rob Rix
977d459995 Rename a couple of tests. 2017-06-05 11:32:18 -04:00
Rob Rix
5fecc68324 🔥 Summarizable. 2017-06-05 11:31:37 -04:00
Rob Rix
ea82328fac Filter out both-missing cases up front. 2017-06-01 11:33:12 -04:00
Rob Rix
8cd44d59a5 diffTerms takes its inputs in Both. 2017-06-01 11:10:47 -04:00
Rob Rix
4b5ad434e8 Rename parseDiffAndRenderBlobPair to diffBlobPair. 2017-05-31 12:27:21 -04:00
Rob Rix
f95dd4215d Correct TOCSpec. 2017-05-30 10:29:37 -04:00
Rob Rix
681d0c8bce 🔥 the JavaScript language. 2017-05-17 12:54:37 -04:00
Rob Rix
b8b844cecc 🔥 more redundant imports. 2017-05-11 17:16:51 -04:00
Rob Rix
162a9695d4 Correct the specs for only taking the after side of replacements. 2017-05-11 17:09:54 -04:00
Rob Rix
a71183adca Revert "Expect multiple results when there are multiple methods."
This reverts commit 2cae877627e577342072eb119729b92e8f020978.
2017-05-11 17:08:38 -04:00
Rob Rix
b8db6b85a2 Expect multiple results when there are multiple methods. 2017-05-11 17:04:33 -04:00
Rob Rix
c548795cb9 diffTOC doesn’t take blobs. 2017-05-11 16:59:32 -04:00
Rob Rix
2b68c6e626 Correct how we count the number of relevant nodes. 2017-05-11 16:54:14 -04:00
Rob Rix
f24a687937 We now include results from both sides of replacements. 2017-05-11 16:42:17 -04:00
Rob Rix
1f653470d1 Correct the tests. 2017-05-11 16:37:08 -04:00
Rob Rix
994e56452f Provide declarations in all the tests. 2017-05-11 15:53:22 -04:00
Rob Rix
0d13175085 Reuse the entryPayload function. 2017-05-11 15:37:17 -04:00
Rob Rix
0ba823b51f Update the fixture to include changes for the non-error side. 2017-05-11 15:21:18 -04:00
Rob Rix
5e5c4694b8 Merge remote-tracking branch 'origin/master' into generalize-table-of-contents-over-the-syntax-functor
# Conflicts:
#	src/Arguments.hs
#	test/CommandSpec.hs
#	test/SpecHelpers.hs
#	test/TOCSpec.hs
2017-05-11 15:17:46 -04:00
Rob Rix
715548bd89 Reformat the changed entry test. 2017-05-11 13:54:32 -04:00
Rob Rix
d19331da82 Correct the test of changed entries. 2017-05-11 13:52:31 -04:00
Rob Rix
7f6c9f33e0 Generalize programOf to wrap diffs. 2017-05-11 13:49:25 -04:00
Rob Rix
a8f68f61d0 Test the generation of changed entries. 2017-05-11 13:48:35 -04:00
Rob Rix
06d40b69b7 Test that entries within patches are returned in Patched. 2017-05-11 13:11:40 -04:00
Rob Rix
f22e703550 Slightly safer selection of the last value. 2017-05-11 13:11:16 -04:00
Rob Rix
d1d5f6454c Pull the selection of the last value into a helper. 2017-05-11 13:07:18 -04:00
Rob Rix
f7bc08427a Test that we produce unchanged entries for identity diffs. 2017-05-11 10:02:18 -04:00
Rob Rix
8a86d27f7c Sort the imports. 2017-05-11 10:00:11 -04:00
Rob Rix
7227e27428 Move unListableDiff into SpecHelpers. 2017-05-11 09:28:52 -04:00
Rob Rix
1dc74959b8 Test that tableOfContentsBy includes all nodes with constant Just functions. 2017-05-11 09:27:28 -04:00
Rob Rix
0bb408bf06 Test that tableOfContentsBy will drop everything with the constant Nothing function. 2017-05-10 17:01:42 -04:00
Rob Rix
2a551f1a94 Use the inserting helper. 2017-05-10 16:08:39 -04:00
Rob Rix
72faa30494 Invert the sense of the valid/error predicate. 2017-05-10 15:55:10 -04:00
Rob Rix
4ea3832200 Pass decorators to diffBlobPairs. 2017-05-10 15:41:17 -04:00
Timothy Clem
b7370b6e1a Sort out the tests to pass language with paths 2017-05-09 15:55:26 -07:00
Rob Rix
c131c94200 Fix the tests. 2017-05-09 11:17:26 -04:00
Rob Rix
40ab9a051f Turn off the warning for the orphan instance. 2017-05-09 10:19:45 -04:00
Rob Rix
561e61fdd5 Use Text in TOCSpec. 2017-05-08 15:08:01 -04:00
Rob Rix
96d6210a4c Use wrap/pure instead of free $ Free/Pure. 2017-05-08 13:29:04 -04:00
Timothy Clem
12948181c5 Merge remote-tracking branch 'origin/master' into clean-parse-and-diff-interface 2017-04-25 09:02:41 -07:00
joshvera
7395e88ab0 Remove Data.RandomWalkSimilarity 2017-04-24 15:53:11 -04:00
Timothy Clem
56f9a7ba40 Change naming to diffBlobPair(s) 2017-04-24 07:46:32 -07:00
Timothy Clem
78d376e256 Pair down command to just fs and git operations 2017-04-21 13:56:19 -07:00
Timothy Clem
e9316f4026 Use new diffBlobs interface in cmdline program 2017-04-21 10:25:47 -07:00
Timothy Clem
04f7f4b1f5 Start to build new interface for semantic 2017-04-19 16:33:27 -07:00
Timothy Clem
34553f1057 toc summary specs no longer rely on command 2017-04-19 14:16:44 -07:00
Timothy Clem
eb9547fb25 Tease apart file reading and transcoding 2017-04-19 09:12:19 -07:00
Rob Rix
15d899abed Run diffs in Both. 2017-04-04 10:42:51 -04:00
Rob Rix
43c2b696ed 🔥 redundant imports. 2017-04-03 22:21:12 -04:00
Rob Rix
fbb899250a Replace the summaries maps with Summaries. 2017-04-03 17:15:58 -04:00
Rob Rix
48ddf53099 Port TOCSpec to Command. 2017-04-03 16:39:35 -04:00
Rob Rix
37e21217e2 Import the command modules directly. 2017-04-03 12:18:40 -04:00
Rob Rix
5b755aa355 Use the DefaultFields synonym everywhere. 2017-03-31 15:22:26 -04:00
Rob Rix
aa45751caf Import Command when we need both commands. 2017-03-31 11:53:36 -04:00
Rob Rix
1fbe6a8319 Rename ParseCommand to Command.Parse. 2017-03-31 11:50:36 -04:00
Rob Rix
32b9dd9f16 Rename DiffCommand to Command.Diff. 2017-03-31 11:48:21 -04:00
joshvera
cdbd260b0f Remove type from Function and unpack call signatures 2017-03-29 12:36:05 -04:00
Timothy Clem
652be339c6 Rework diffing for max parallelization 2017-03-13 16:46:52 -07:00
Timothy Clem
68d1f1cd97 Fix up tests to use ByteString too 2017-03-08 13:56:08 -08:00
Timothy Clem
fff9b6d3ef Refactor IO back out into Source and SemanticDiff 2017-02-28 15:45:38 -08:00
Timothy Clem
e3bdb6b95b Extract SemanticDiff.IO and clearly delineate program commands 2017-02-28 13:43:01 -08:00
Timothy Clem
93c01e62d9 Implement tiers instead of list for Category 2017-02-27 16:02:26 -08:00
Timothy Clem
0cd347f2cd mapM -> traverse 2017-02-23 08:29:55 -08:00
Timothy Clem
0cf38c583c Assert to summary json output 2017-02-22 20:05:48 -08:00
Timothy Clem
a0ac9832a8 Move toc spec fixtures 2017-02-22 17:22:50 -08:00
Timothy Clem
38756dba85 sequence fmap -> mapM 2017-02-22 15:23:37 -08:00
Rob Rix
fe326bcf03 🔥 the comparability parameter to diffTerms. 2017-02-21 15:23:30 -05:00
Rob Rix
c4f37454d6 🔥 the construct parameter to diffTerms. 2017-02-21 15:17:35 -05:00
Rob Rix
6526076056 Don’t decorate terms with costs. 2017-02-21 14:53:42 -05:00
Rob Rix
01c47fa0c1 🔥 the computation of costs. 2017-02-21 14:34:24 -05:00
Timothy Clem
a10bc515c0 ++tree-sitter-ruby and parse singleton methods to fix ambiguity 2017-02-17 11:34:47 -08:00
Timothy Clem
1bd36fff7c Failing test to demonstrate the Ruby method shape ambiguity problem 2017-02-17 10:49:26 -08:00
Timothy Clem
7caca45fba Use - in filenames 2017-02-17 08:46:56 -08:00
Timothy Clem
8a8c3257f5 Make sure single ruby methods are included in this test 2017-02-17 08:46:33 -08:00
Timothy Clem
8b6ebb6db1 Test out go method with receiver summaries 2017-02-17 08:45:51 -08:00
Timothy Clem
8cd0b52a9f Make it clear that these sourceblobs are for the blankdiff 2017-02-16 15:47:18 -08:00
Timothy Clem
5108b53dfb Prop test for changes that don't toc summarize 2017-02-16 15:41:13 -08:00
Timothy Clem
d39e81a93b Test for changes inside of methods/functions 2017-02-16 15:22:46 -08:00