forked from objectionary/eo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
objectionary#1249: It should align inner classes in tests
- Loading branch information
1 parent
bf1c21f
commit 19c3a07
Showing
7 changed files
with
252 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
eo-maven-plugin/src/main/resources/org/eolang/maven/pre/align-test-classes.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
The MIT License (MIT) | ||
Copyright (c) 2016-2024 Objectionary.com | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included | ||
in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
--> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id="attrs" version="2.0"> | ||
<xsl:output encoding="UTF-8" method="xml"/> | ||
<xsl:template match="node()|@*"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node()|@*"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
<xsl:template match="program/objects/class"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node()|@*"/> | ||
<xsl:if test="//meta[head='tests' or head='junit']"> | ||
<xsl:for-each select="class//class"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node()|@*"/> | ||
</xsl:copy> | ||
</xsl:for-each> | ||
</xsl:if> | ||
</xsl:copy> | ||
</xsl:template> | ||
</xsl:stylesheet> |
39 changes: 39 additions & 0 deletions
39
eo-maven-plugin/src/main/resources/org/eolang/maven/pre/remove-high-level-inner-classes.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
The MIT License (MIT) | ||
Copyright (c) 2016-2024 Objectionary.com | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included | ||
in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
--> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id="attrs" version="2.0"> | ||
<xsl:output encoding="UTF-8" method="xml"/> | ||
<xsl:template match="node()|@*"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node()|@*"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
<xsl:template match="program/objects/class/class//class"> | ||
<xsl:if test="not(//meta[head='tests' or head='junit'])"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node()|@*"/> | ||
</xsl:copy> | ||
</xsl:if> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
# The MIT License (MIT) | ||
# | ||
# Copyright (c) 2016-2024 Objectionary.com | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included | ||
# in all copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
+architect yegor256@gmail.com | ||
+home https://github.com/objectionary/eo | ||
+tests | ||
+package org.eolang | ||
+version 0.0.0 | ||
|
||
# Nesting test. | ||
[] > nesting-test | ||
[] > aboba-1 | ||
[] > aboba-2 | ||
[] > aboba-2 | ||
true > @ | ||
|
||
# Nesting blah test. | ||
[] > nesting-blah-test | ||
blah0 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah0 | ||
blah1 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah1 | ||
blah2 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah2 | ||
blah3 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah3 | ||
blah4 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah4 | ||
blah5 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah5 | ||
blah6 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah6 | ||
blah7 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah7 | ||
blah8 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah8 | ||
blah9 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah9 | ||
blah10 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah10 | ||
blah11 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah11 | ||
blah12 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah12 | ||
blah13 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah13 | ||
blah14 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah14 | ||
blah15 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah15 | ||
blah16 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah16 | ||
blah17 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah17 | ||
blah18 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah18 | ||
blah19 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah19 | ||
blah20 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah20 | ||
blah21 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah21 | ||
blah22 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah22 | ||
blah23 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah23 | ||
blah24 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah24 | ||
blah25 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah25 | ||
blah26 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah26 | ||
blah27 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah27 | ||
blah28 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah28 | ||
blah29 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah29 | ||
blah30 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah30 | ||
blah31 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah31 | ||
blah32 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah32 | ||
blah33 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah33 | ||
blah34 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah34 | ||
blah35 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah35 | ||
blah36 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah36 | ||
blah37 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah37 | ||
blah38 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah38 | ||
blah39 > @ | ||
# This is the default 64+ symbols comment in front of named abstract object. | ||
[] > blah39 | ||
true > @ |