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

123 Commits

Author SHA1 Message Date
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
Timothy Clem
462d44c174 Fill out prop test for the different patch types 2017-02-16 14:20:22 -08:00
Timothy Clem
0bc9633fff Parameterize terms instead of diffs 2017-02-16 14:19:35 -08:00
Timothy Clem
7b9d4b1f1b Add test for toc summaries of files with unicode chars 2017-02-16 08:29:49 -08:00
Timothy Clem
ea3310d953 No trace to let ci run 2017-02-15 16:22:22 -08:00
Timothy Clem
70c8e2a57b Property test that toc summarizes methods and functions 2017-02-15 16:13:34 -08:00
Timothy Clem
af54d397a2 Test basic method toc summary, and port over one prop test 2017-02-15 10:15:57 -08:00
Timothy Clem
51ad73bb4d Better names for these test fixtures 2017-02-14 13:02:25 -08:00
Timothy Clem
be88ebb9f6 Import Patch 2017-02-14 12:49:09 -08:00
Timothy Clem
64119b3fc3 Remove unused imports and sort 2017-02-14 11:54:32 -08:00
Timothy Clem
94f606da81 Make the dedupe tests pass 2017-02-14 11:53:25 -08:00
Timothy Clem
1facca0b50 Add failing toc summary test and refactor removeDupes 2017-02-14 11:29:24 -08:00