classReplicationTablePatternLexemeGenerator
final class ReplicationTablePatternLexemeGenerator
implements LexemeGenerator
sql_yacc.yy:filter_wild_db_table_string requires a dot and forbids line feeds after get_text decoding.
Methods§
public function generate(LexemeInput $input): ?LexemeCandidatesKeeps the original quoted spelling while validating the source action's decoded string conditions.
Parameters
$input | LexemeInput |
Returns
Test cases 3
ReplicationTablePatternLexemeGeneratorTest::testGenerateKeepsDefaultPatternsAndOrdinaryStringsSeparatecallsReplicationTablePatternLexemeGeneratorTest::testGeneratePreservesExplicitCandidateProvenancecallsReplicationTablePatternLexemeGeneratorTest::testGenerateValidatesDecodedPatternsWithoutChangingTheirSpellingcalls
Calls 5
- method-call LexemeInput::terminal() line 27
- method-call ReplicationTablePatternLexemeGenerator::accepts() line 32
- new LexemeSequence line 33
- new Lexeme line 34
- static-call LexemeCandidates::of() line 38
public function accepts(string $spelling): boolDecodes escapes affecting dot, newline and NUL checks; strcont examines the C-string prefix.
Parameters
$spelling | string |
Returns
boolTest cases 1
Called from 1
Calls 6
- new QuotedDomain line 46
- function-call
in_arrayline 47 - function-call
strlenline 47 - method-call QuotedDomain::match() line 47
- function-call
explodeline 62 - function-call
str_containsline 63
Test cases 13§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
ReplicationTablePatternLexemeGeneratorTest::testAcceptsValidatesTheDecodedParserValuecallsReplicationTablePatternLexemeGeneratorTest::testGenerateKeepsDefaultPatternsAndOrdinaryStringsSeparatecallsReplicationTablePatternLexemeGeneratorTest::testGeneratePreservesExplicitCandidateProvenancecallsReplicationTablePatternLexemeGeneratorTest::testGenerateValidatesDecodedPatternsWithoutChangingTheirSpellingcalls
Other tests reaching this symbol 9
LexicalExceptionTestcallsGenerationContextTestcallsCharsetValueLexemeGeneratorTestcallsDefinitionFactoryTestcallsLexicalGrammarTestcallsSqlGeneratorFactoryTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqliteProviderTestcalls