File tree Expand file tree Collapse file tree 13 files changed +178
-68
lines changed Expand file tree Collapse file tree 13 files changed +178
-68
lines changed Original file line number Diff line number Diff line change 43
43
44
44
# Capture::Tiny
45
45
DEBUG *
46
+
47
+ # Other
48
+ /stuff
Original file line number Diff line number Diff line change 1
1
bin/axk
2
2
Changes
3
- ex/1.axk
4
- ex/2.axk
5
- ex/ex1.xml
6
- ex/oneliner
7
- ex/xml1.axk
8
3
lib/Object/TinyDefaults.pm
9
4
lib/XML/Axk.pm
10
5
lib/XML/Axk/App.pm
11
6
lib/XML/Axk/Base.pm
12
7
lib/XML/Axk/Core.pm
13
8
lib/XML/Axk/DOM.pm
9
+ lib/XML/Axk/L0.pm
14
10
lib/XML/Axk/L1.pm
11
+ lib/XML/Axk/Language.pm
15
12
lib/XML/Axk/Matcher/Always.pm
16
13
lib/XML/Axk/Matcher/XPath.pm
17
14
lib/XML/Axk/Sandbox.pm
@@ -20,12 +17,25 @@ lib/XML/Axk/SAX/Handler.pm
20
17
lib/XML/Axk/SAX/Runner.pm
21
18
lib/XML/Axk/Vars/Array.pm
22
19
lib/XML/Axk/Vars/Scalar.pm
20
+ LICENSE
23
21
Makefile.PL
24
22
MANIFEST This list of files
25
- LICENSE
23
+ MANIFEST.SKIP
26
24
README.md
27
25
t/00-load.t
28
- xt/boilerplate.t
29
- xt/manifest.t
30
- xt/pod-coverage.t
31
- xt/pod.t
26
+ t/02-basic-app.t
27
+ t/02-basic-core.t
28
+ t/04-languages.t
29
+ t/06-class-tests.t
30
+ t/ex/02-noL.axk
31
+ t/ex/02.axk
32
+ t/ex/1.axk
33
+ t/ex/2.axk
34
+ t/ex/ex1.xml
35
+ t/ex/l0.axk
36
+ t/ex/oneliner
37
+ t/ex/xml1.axk
38
+ t/lib/AxkTest.pm
39
+ t/lib/AxkTest/Helpers.pm
40
+ t/tests/T/Object/TinyDefaults.pm
41
+ t/tests/T/XML/Axk/L1.pm
Original file line number Diff line number Diff line change
1
+ # MANIFEST.SKIP for Text::PerlPP
2
+
3
+ # Avoid version control files.
4
+ \bRCS\b
5
+ \bCVS\b
6
+ \bSCCS\b
7
+ ,v$
8
+ \B\.svn\b
9
+ \B\.git\b
10
+ \B\.gitignore\b
11
+ \b_darcs\b
12
+ \B\.cvsignore$
13
+
14
+ # Avoid VMS specific MakeMaker generated files
15
+ \bDescrip.MMS$
16
+ \bDESCRIP.MMS$
17
+ \bdescrip.mms$
18
+
19
+ # Avoid Makemaker generated and utility files.
20
+ \bMANIFEST\.bak
21
+ \bMakefile$
22
+ \bblib/
23
+ \bMakeMaker-\d
24
+ \bpm_to_blib\.ts$
25
+ \bpm_to_blib$
26
+ \bblibdirs\.ts$ # 6.18 through 6.25 generated this
27
+ \b_eumm/ # 7.05_05 and above
28
+
29
+ # Avoid Module::Build generated and utility files.
30
+ \bBuild$
31
+ \b_build/
32
+ \bBuild.bat$
33
+ \bBuild.COM$
34
+ \bBUILD.COM$
35
+ \bbuild.com$
36
+
37
+ # and Module::Build::Tiny generated files
38
+ \b_build_params$
39
+
40
+ # Avoid temp and backup files.
41
+ ~$
42
+ \.old$
43
+ \#$
44
+ \b\.#
45
+ \.bak$
46
+ \.tmp$
47
+ \.#
48
+ \.rej$
49
+ \..*\.sw.?$
50
+
51
+ # Avoid OS-specific files/dirs
52
+ # Mac OSX metadata
53
+ \B\.DS_Store
54
+ # Mac OSX SMB mount metadata files
55
+ \B\._
56
+
57
+ # Avoid Devel::Cover and Devel::CoverX::Covered files.
58
+ \bcover_db\b
59
+ \bcovered\b
60
+
61
+ # Avoid prove files
62
+ \B\.prove$
63
+
64
+ # Avoid MYMETA files
65
+ ^MYMETA\.
66
+
67
+ /MANIFEST.SKIP
68
+
69
+ # Skip directories
70
+ ^stuff\b
71
+
72
+ # Skip some specific files
73
+ ^tags
74
+ \.stackdump$
75
+ ^run$
76
+ ^xt\/
77
+ \bDEBUG
Original file line number Diff line number Diff line change 1
1
# !/usr/bin/perl -w
2
+ # Copyright (c) 2018 cxw42. All rights reserved. Artistic 2.
2
3
# To run this manually from the source tree, do
3
4
# perl -Ilib bin/axk
4
-
5
5
use XML::Axk::App;
6
-
7
6
exit (XML::Axk::App::Main(\@ARGV ));
8
-
9
-
10
7
# vi: set ts=4 sts=4 sw=4 et ai ft=perl: #
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ our @EXPORT = qw(
28
28
always never xpath sel on run entering leaving whenever) ;
29
29
our @EXPORT_OK = qw( @SP_names ) ;
30
30
31
+ # Config
32
+ our $C_WANT_TEXT = 0;
33
+
31
34
# Helpers ======================================================== {{{1
32
35
33
36
# Accessor
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ sub localpath {
30
30
{
31
31
my $out =
32
32
capture_stdout
33
- { XML::Axk::App::Main([ ' -f' , localpath(' 02.axk' ), ' --no-input' ]) };
33
+ { XML::Axk::App::Main([ ' -f' , localpath(' ex/ 02.axk' ), ' --no-input' ]) };
34
34
is($out , ' 1337' , ' on-disk script runs' );
35
35
}
36
36
37
37
# }}}1
38
38
# Script with no language indicator =============================== {{{1
39
39
{
40
- eval { XML::Axk::App::Main([ ' -f' , localpath(' 02-noL.axk' ),
40
+ eval { XML::Axk::App::Main([ ' -f' , localpath(' ex/ 02-noL.axk' ),
41
41
' --no-input' ]) };
42
42
my $err = $@ ;
43
43
like($err , qr / No language \( Ln\) specified/ , ' detects missing Ln' );
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ sub localpath {
44
44
# Script on disk ================================================== {{{1
45
45
{
46
46
my $core = XML::Axk::Core-> new();
47
- $core -> load_script_file(localpath ' 02.axk' );
47
+ $core -> load_script_file(localpath ' ex/ 02.axk' );
48
48
49
49
my $out = capture_stdout { $core -> run(); };
50
50
is($out , ' 1337' , ' on-disk script runs' );
@@ -54,7 +54,7 @@ sub localpath {
54
54
# Script with no language indicator =============================== {{{1
55
55
{
56
56
my $core = XML::Axk::Core-> new();
57
- eval { $core -> load_script_file(localpath ' 02-noL.axk' ); };
57
+ eval { $core -> load_script_file(localpath ' ex/ 02-noL.axk' ); };
58
58
my $err = $@ ;
59
59
like($err , qr / No language \( Ln\) specified/ , ' detects missing Ln' );
60
60
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
- # !perl
2
- # AxkTest.pm: Test::Kit for XML::Axk
3
-
4
- use Test::Kit;
5
- use 5.018;
6
- use strict;
7
- use warnings;
8
-
9
- include feature => {
10
- import => [' :5.18' ]
11
- };
12
- include qw( strict warnings) ;
13
- include qw( Test::More File::Spec XML::Axk::App) ;
14
- include ' Capture::Tiny' => {
15
- import => [qw( capture_stdout capture_merged) ]
16
- };
17
-
18
- 1;
19
-
20
- # vi: set ts=4 sts=4 sw=4 et ai fdm=marker fdl=1: #
1
+ # AxkTest.pm: Test::Kit for XML::Axk
2
+ # Copyright (c) 2018 cxw42. All rights reserved. Artistic 2.
3
+ package AxkTest ;
4
+
5
+ use Test::Kit;
6
+ use 5.018;
7
+ use strict;
8
+ use warnings;
9
+
10
+ include feature => {
11
+ import => [' :5.18' ]
12
+ };
13
+ include qw( strict warnings) ;
14
+ include qw( Test::More File::Spec XML::Axk::App XML::Axk::Core) ;
15
+ include qw( AxkTest::Helpers) ;
16
+ include ' Capture::Tiny' => {
17
+ import => [qw( capture_stdout capture_merged) ]
18
+ };
19
+
20
+ 1;
21
+
22
+ # vi: set ts=4 sts=4 sw=4 et ai fdm=marker fdl=1: #
You can’t perform that action at this time.
0 commit comments