1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
Commit Graph

1043 Commits

Author SHA1 Message Date
4fb6ac31a5 Improve tests 2019-04-07 16:38:18 +01:00
69f6754c4d These classes of mutations would be caught be static analysis
Infection doesn't support running Psalm, so removing
the mutations is next best solution.
2019-04-07 16:38:18 +01:00
d8d483bd6a Add some component level tests 2019-04-07 16:38:17 +01:00
c0792947a6 Remove unused methods 2019-04-07 16:38:17 +01:00
658129d847 Suppress instead of writing super verbose tests 2019-04-07 16:38:17 +01:00
65450f47cd Simplify 2019-04-07 16:38:17 +01:00
fc23ca5ef5 Remove more redundant checks 2019-04-07 16:38:17 +01:00
015e476f3e Remove unused import 2019-04-07 16:38:17 +01:00
289b641a42 Remove inaccurate comment 2019-04-07 16:38:17 +01:00
147a87a4f3 These are self-explainitory 2019-04-07 16:38:16 +01:00
b90efc69ec Ensure marker is properly contained in the Inline 2019-04-07 16:38:16 +01:00
dbe37bcb0e Type check tests 2019-04-07 16:38:16 +01:00
30613b2430 Ensure $startPosition is positive 2019-04-07 16:38:16 +01:00
cef5b16ae0 Update excludes 2019-04-07 16:38:16 +01:00
5ecfc42728 Early exit if found 2019-04-07 16:38:16 +01:00
3bb24c20a6 Assert marker is correct for hard and soft breaks 2019-04-07 16:38:16 +01:00
369aea5d8d Collect State from continuable state updating block on advance 2019-04-07 16:38:15 +01:00
2b79d599fb Require State to build and advance blocks 2019-04-07 16:38:15 +01:00
8fd3c77109 Tighten requirements 2019-04-07 16:38:15 +01:00
df703dcb0e Missed one 2019-04-07 16:38:15 +01:00
36fac49ed8 Remove redundant checks
These don't appear to have a measurable positive impact on performance.
2019-04-07 16:38:15 +01:00
41fb6b0d43 Move url sanitisation out of Element class 2019-04-07 16:38:15 +01:00
a681cf631c Acquisition capable blocks as an interface 2019-04-07 16:38:15 +01:00
6ac6b7f7f7 Test blockquote whitespace handling 2019-04-07 16:38:14 +01:00
3c6578dd4b Remove deleted stage 2019-04-07 16:38:14 +01:00
c2973100e0 Fix whitespace trimming for soft and hard breaks 2019-04-07 16:38:14 +01:00
0626a83289 Test trimming doesn't occur when asymmetric 2019-04-07 16:38:14 +01:00
2efae741bb Simplify expression 2019-04-07 16:38:14 +01:00
93650fb9b5 PHP 5.5 compat 2019-04-07 16:38:14 +01:00
9bf91d7183 Cache spec locally for 5 minutes 2019-04-07 16:38:13 +01:00
f95c3bb154 --show-mutations over cat infection.log 2019-04-07 16:38:13 +01:00
660c2e43a3 Paragraph would end itself and new one must start for header row to
exist
2019-04-07 16:38:13 +01:00
d9792bb12c Ensure markers are checked when beginning blocks 2019-04-07 16:38:13 +01:00
08c40afc16 Test against HTML block endings 2019-04-07 16:38:13 +01:00
14f8ff52e1 Test continuation of indented code blocks 2019-04-07 16:38:13 +01:00
c310625b93 Length not necessary 2019-04-07 16:38:13 +01:00
811991b27d Run mutation tests after unit tests on supported platforms 2019-04-07 16:38:12 +01:00
d29f900374 Nightly doesn't have xdebug 2019-04-07 16:38:12 +01:00
efe324c08b Add mutation testing 2019-04-07 16:38:12 +01:00
54f2c4eb4c Fix recovered spaces calculation 2019-04-07 16:38:12 +01:00
117912c373 Substr over indexing string 2019-04-07 16:38:12 +01:00
63a97a926b Remove leftover hackyness 2019-04-07 16:38:12 +01:00
cb211a88a8 PHP < 7 compat 2019-04-07 16:38:12 +01:00
c49d40027f Add StateBearer which can carry state 2019-04-07 16:38:11 +01:00
4dee1e9a55 Add convenience instance-based initialisers 2019-04-07 16:38:11 +01:00
dbc0efeec0 Require integer-keyed lists so that array_merge result is predictable 2019-04-07 16:38:11 +01:00
fe1355ef9e Test strict and weak in Travis 2019-04-07 16:38:11 +01:00
f2f7433dcf Switch to CommonMarkStrict tests 2019-04-07 16:38:11 +01:00
a2bca78f7e Fix whitespace errors 2019-04-07 16:38:11 +01:00
42d21a2413 Remove cached items no that longer exist in spec.txt 2019-04-07 16:38:10 +01:00