Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inheritance support #120 #157

Merged
merged 2 commits into from
Nov 30, 2023

Remove unused method

f861f55
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Inheritance support #120 #157

Remove unused method
f861f55
Select commit
Loading
Failed to load commit list.
GitHub Actions / Maven Surefire Tests succeeded Nov 30, 2023 in 1s

Maven Surefire Tests ✅

Tests passed successfully

Report Passed Failed Skipped Time
TEST-com.samskivert.mustache.MustacheTest.xml 124✅ 154ms
TEST-com.samskivert.mustache.PartialThreadSafeTest.xml 1✅ 40ms
TEST-com.samskivert.mustache.specs.CustomSpecTest.xml 7✅ 1ms
TEST-com.samskivert.mustache.specs.OfficialSpecTest.xml 154✅ 386ms

✅ TEST-com.samskivert.mustache.MustacheTest.xml

124 tests were completed in 154ms with 124 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.samskivert.mustache.MustacheTest 124✅ 154ms

✅ com.samskivert.mustache.MustacheTest

✅ testMethodVariable
✅ testPropertyVariable
✅ testCallSiteReuse
✅ testBooleanPropertyVariable
✅ testPrimitiveBooleanPropertyVariable
✅ testNullComponentInCompoundVariable
✅ testNullComponentInCompoundVariableWithDefault
✅ testCustomContext
✅ testCallSiteChange
✅ testContextPokingLambda
✅ testSectionWithFalseyZero
✅ testCustomFormatter
✅ testFieldVariable
✅ testOptionalSupportingCollector
✅ testDefaultMethodVariable
✅ testCharSequenceVariable
✅ testMapEntriesPlusReflectSection
✅ testCompoundVariableAsPlain
✅ testSkipVoidReturn
✅ testShadowedContextWithNull
✅ testMissingComponentInCompoundVariable
✅ testNoAccesCoercion
✅ testCompoundVariable
✅ testSectionWithNonFalseyZero
✅ testMissingComponentInCompoundVariableWithDefault
✅ testNotFirst
✅ testPartialIndentWithBlock
✅ testStrayTagCharacters
✅ testNullValueGetsDefault
✅ testArrayItemSection
✅ testLambdaWithContext
✅ testNewlineSkippingDelimsTag
✅ testStandardsModeWithNullValuesInLoop
✅ testNestedThis
✅ testStandardsModeWithDotValue
✅ testNestedNullThis
✅ testPartialPlusNestedContext
✅ testNullSection
✅ testSimpleVariable
✅ testUnescapeHTML
✅ testPartialIndent
✅ testFirst
✅ testIndex
✅ testVisit
✅ testPartial
✅ testNestedPartialBlankLinesCRLF
✅ testLast
✅ testDelimiterChange
✅ testMissingStrictSection
✅ testLambdaFragExecTemplate
✅ testEmptyIteratorSection
✅ testStandardsModeWithNullValuesInInverseLoop
✅ testEscapeHTML
✅ testPartialUseWhenUnconfigured
✅ testMissingValueWithDefault
✅ testPartialIndentWithBlockAtStart
✅ testNewlineSkipping
✅ testListItemSection
✅ testNestedListSection
✅ testSectionWithNonFalseyEmptyString
✅ testNewlineSkippingCRLF
✅ testOneShotSection
✅ testLambda1
✅ testLambda2
✅ testEmptyArraySection
✅ testPrimitiveArrayVariable
✅ testNoTrimNewlineFromNestedTagAt0
✅ testListIndexSection
✅ testMapEntriesSection
✅ testLineReporting
✅ testNestedContexts
✅ testPrimitiveArrayIndexOutOfBoundsVariable
✅ testMissingValue
✅ testPartialIndentWithVariableAtTheStart
✅ testTrimBlank
✅ testRecursivePartial
✅ testInvalidTripleMustache
✅ testUserDefinedEscaping
✅ testMissingNonStrictSection
✅ testMissingValueWithDefaultSubstitution
✅ testArrayIndexOutOfBoundsSection
✅ testNestedPartialIndent
✅ testDanglingTag
✅ testComment
✅ testMissingValueWithDefaultSubstitution2
✅ testMissingValueWithDefaultSubstitution3
✅ testPartialIndentWithInlineBlock
✅ testInvertibleLambda
✅ testMissingStrictSectionDefaultValue
✅ testListIndexOutOfBoundsSection
✅ testNonStandardDefaultDelims
✅ testFirstLast
✅ testIteratorSection
✅ testFalseSection
✅ testTopLevelThis
✅ testCompilingDoesntChangeCompilersDelimiters
✅ testSectionWithFalseyEmptyString
✅ testIteratorItemSection
✅ testShadowedContext
✅ testIteratorIndexOutOfBoundsSection
✅ testLambdaDecompile
✅ testIteratorIndexSection
✅ testInvalidUnescapeHTML
✅ testPrimitiveArrayIndexVariable
✅ testInverseFirstLastCombo
✅ testNewlineNonSkipping
✅ testPartialIndentInBlock
✅ testMissingValueWithDefaultNonEmptyString
✅ testMissingValueWithNullDefault
✅ testStandardsModeWithNoParentContextSearching
✅ testArraySection
✅ testMissingStrictSectionNullValue
✅ testCommentWithFunnyChars
✅ testListSection
✅ testPartialDelimiterMatch
✅ testVisitNested
✅ testNotLast
✅ testNestedIndex
✅ testNestedPartialBlankLines
✅ testArrayIndexSection
✅ testNullValueGetsNullDefault
✅ testEmptyListSection
✅ testFirstLastCombo
✅ testPartialBlankLines

✅ TEST-com.samskivert.mustache.PartialThreadSafeTest.xml

1 tests were completed in 40ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.samskivert.mustache.PartialThreadSafeTest 1✅ 40ms

✅ com.samskivert.mustache.PartialThreadSafeTest

✅ testPartialThreadSafe

✅ TEST-com.samskivert.mustache.specs.CustomSpecTest.xml

7 tests were completed in 1ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.samskivert.mustache.specs.CustomSpecTest 7✅ 1ms

✅ com.samskivert.mustache.specs.CustomSpecTest

✅ test[sections-Standalone Lines-0]
✅ test[partials-Nested Partial Indent-1]
✅ test[partials-Partial Section Indentation End Content-2]
✅ test[partials-Partial Section Indentation Inside Start Content-3]
✅ test[partials-Partial Section Indentation Start Content-4]
✅ test[partials-Partial Indentation With Empty Sections-5]
✅ test[~inheritance-Non block content should not impact standalone blocks-6]

✅ TEST-com.samskivert.mustache.specs.OfficialSpecTest.xml

154 tests were completed in 386ms with 154 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.samskivert.mustache.specs.OfficialSpecTest 154✅ 386ms

✅ com.samskivert.mustache.specs.OfficialSpecTest

✅ test[comments-Inline-0]
✅ test[comments-Multiline-1]
✅ test[comments-Standalone-2]
✅ test[comments-Indented Standalone-3]
✅ test[comments-Standalone Line Endings-4]
✅ test[comments-Standalone Without Previous Line-5]
✅ test[comments-Standalone Without Newline-6]
✅ test[comments-Multiline Standalone-7]
✅ test[comments-Indented Multiline Standalone-8]
✅ test[comments-Indented Inline-9]
✅ test[comments-Surrounding Whitespace-10]
✅ test[comments-Variable Name Collision-11]
✅ test[delimiters-Pair Behavior-12]
✅ test[delimiters-Special Characters-13]
✅ test[delimiters-Sections-14]
✅ test[delimiters-Inverted Sections-15]
✅ test[delimiters-Partial Inheritence-16]
✅ test[delimiters-Post-Partial Behavior-17]
✅ test[delimiters-Surrounding Whitespace-18]
✅ test[delimiters-Outlying Whitespace (Inline)-19]
✅ test[delimiters-Standalone Tag-20]
✅ test[delimiters-Indented Standalone Tag-21]
✅ test[delimiters-Standalone Line Endings-22]
✅ test[delimiters-Standalone Without Previous Line-23]
✅ test[delimiters-Standalone Without Newline-24]
✅ test[delimiters-Pair with Padding-25]
✅ test[interpolation-No Interpolation-26]
✅ test[interpolation-Basic Interpolation-27]
✅ test[interpolation-HTML Escaping-28]
✅ test[interpolation-Triple Mustache-29]
✅ test[interpolation-Ampersand-30]
✅ test[interpolation-Basic Integer Interpolation-31]
✅ test[interpolation-Triple Mustache Integer Interpolation-32]
✅ test[interpolation-Ampersand Integer Interpolation-33]
✅ test[interpolation-Basic Decimal Interpolation-34]
✅ test[interpolation-Triple Mustache Decimal Interpolation-35]
✅ test[interpolation-Ampersand Decimal Interpolation-36]
✅ test[interpolation-Basic Null Interpolation-37]
✅ test[interpolation-Triple Mustache Null Interpolation-38]
✅ test[interpolation-Ampersand Null Interpolation-39]
✅ test[interpolation-Basic Context Miss Interpolation-40]
✅ test[interpolation-Triple Mustache Context Miss Interpolation-41]
✅ test[interpolation-Ampersand Context Miss Interpolation-42]
✅ test[interpolation-Dotted Names - Basic Interpolation-43]
✅ test[interpolation-Dotted Names - Triple Mustache Interpolation-44]
✅ test[interpolation-Dotted Names - Ampersand Interpolation-45]
✅ test[interpolation-Dotted Names - Arbitrary Depth-46]
✅ test[interpolation-Dotted Names - Broken Chains-47]
✅ test[interpolation-Dotted Names - Broken Chain Resolution-48]
✅ test[interpolation-Dotted Names - Initial Resolution-49]
✅ test[interpolation-Dotted Names - Context Precedence-50]
✅ test[interpolation-Implicit Iterators - Basic Interpolation-51]
✅ test[interpolation-Implicit Iterators - HTML Escaping-52]
✅ test[interpolation-Implicit Iterators - Triple Mustache-53]
✅ test[interpolation-Implicit Iterators - Ampersand-54]
✅ test[interpolation-Implicit Iterators - Basic Integer Interpolation-55]
✅ test[interpolation-Interpolation - Surrounding Whitespace-56]
✅ test[interpolation-Triple Mustache - Surrounding Whitespace-57]
✅ test[interpolation-Ampersand - Surrounding Whitespace-58]
✅ test[interpolation-Interpolation - Standalone-59]
✅ test[interpolation-Triple Mustache - Standalone-60]
✅ test[interpolation-Ampersand - Standalone-61]
✅ test[interpolation-Interpolation With Padding-62]
✅ test[interpolation-Triple Mustache With Padding-63]
✅ test[interpolation-Ampersand With Padding-64]
✅ test[inverted-Falsey-65]
✅ test[inverted-Truthy-66]
✅ test[inverted-Null is falsey-67]
✅ test[inverted-Context-68]
✅ test[inverted-List-69]
✅ test[inverted-Empty List-70]
✅ test[inverted-Doubled-71]
✅ test[inverted-Nested (Falsey)-72]
✅ test[inverted-Nested (Truthy)-73]
✅ test[inverted-Context Misses-74]
✅ test[inverted-Dotted Names - Truthy-75]
✅ test[inverted-Dotted Names - Falsey-76]
✅ test[inverted-Dotted Names - Broken Chains-77]
✅ test[inverted-Surrounding Whitespace-78]
✅ test[inverted-Internal Whitespace-79]
✅ test[inverted-Indented Inline Sections-80]
✅ test[inverted-Standalone Lines-81]
✅ test[inverted-Standalone Indented Lines-82]
✅ test[inverted-Standalone Line Endings-83]
✅ test[inverted-Standalone Without Previous Line-84]
✅ test[inverted-Standalone Without Newline-85]
✅ test[inverted-Padding-86]
✅ test[sections-Truthy-87]
✅ test[sections-Falsey-88]
✅ test[sections-Null is falsey-89]
✅ test[sections-Context-90]
✅ test[sections-Parent contexts-91]
✅ test[sections-Variable test-92]
✅ test[sections-List Contexts-93]
✅ test[sections-Deeply Nested Contexts-94]
✅ test[sections-List-95]
✅ test[sections-Empty List-96]
✅ test[sections-Doubled-97]
✅ test[sections-Nested (Truthy)-98]
✅ test[sections-Nested (Falsey)-99]
✅ test[sections-Context Misses-100]
✅ test[sections-Implicit Iterator - String-101]
✅ test[sections-Implicit Iterator - Integer-102]
✅ test[sections-Implicit Iterator - Decimal-103]
✅ test[sections-Implicit Iterator - Array-104]
✅ test[sections-Implicit Iterator - HTML Escaping-105]
✅ test[sections-Implicit Iterator - Triple mustache-106]
✅ test[sections-Implicit Iterator - Ampersand-107]
✅ test[sections-Implicit Iterator - Root-level-108]
✅ test[sections-Dotted Names - Truthy-109]
✅ test[sections-Dotted Names - Falsey-110]
✅ test[sections-Dotted Names - Broken Chains-111]
✅ test[sections-Surrounding Whitespace-112]
✅ test[sections-Internal Whitespace-113]
✅ test[sections-Indented Inline Sections-114]
✅ test[sections-Standalone Lines-115]
✅ test[sections-Indented Standalone Lines-116]
✅ test[sections-Standalone Line Endings-117]
✅ test[sections-Standalone Without Previous Line-118]
✅ test[sections-Standalone Without Newline-119]
✅ test[sections-Padding-120]
✅ test[partials-Basic Behavior-121]
✅ test[partials-Failed Lookup-122]
✅ test[partials-Context-123]
✅ test[partials-Recursion-124]
✅ test[partials-Surrounding Whitespace-125]
✅ test[partials-Inline Indentation-126]
✅ test[partials-Standalone Line Endings-127]
✅ test[partials-Standalone Without Previous Line-128]
✅ test[partials-Standalone Without Newline-129]
✅ test[partials-Standalone Indentation-130]
✅ test[partials-Padding Whitespace-131]
✅ test[~inheritance-Default-132]
✅ test[~inheritance-Variable-133]
✅ test[~inheritance-Triple Mustache-134]
✅ test[~inheritance-Sections-135]
✅ test[~inheritance-Negative Sections-136]
✅ test[~inheritance-Mustache Injection-137]
✅ test[~inheritance-Inherit-138]
✅ test[~inheritance-Overridden content-139]
✅ test[~inheritance-Data does not override block-140]
✅ test[~inheritance-Data does not override block default-141]
✅ test[~inheritance-Overridden parent-142]
✅ test[~inheritance-Two overridden parents-143]
✅ test[~inheritance-Override parent with newlines-144]
✅ test[~inheritance-Inherit indentation-145]
✅ test[~inheritance-Only one override-146]
✅ test[~inheritance-Parent template-147]
✅ test[~inheritance-Recursion-148]
✅ test[~inheritance-Multi-level inheritance-149]
✅ test[~inheritance-Multi-level inheritance, no sub child-150]
✅ test[~inheritance-Text inside parent-151]
✅ test[~inheritance-Text inside parent-152]
✅ test[~inheritance-Block scope-153]