interfaceLexemeGenerator
interface LexemeGenerator
Supplies candidates without choosing one or mutating the generation state.
Methods§
public function generate(LexemeInput $input): ?LexemeCandidatesNull means this generator does not handle the input.
Parameters
$input | LexemeInput |
Returns
Called from 4
- method-call SqlFaker\Generation\Candidate\MatchingLexemeGenerator::generate() packages/sql-faker/src/Generation/Candidate/MatchingLexemeGenerator.php:35
- method-call SqlFaker\Generation\Output\BoundaryCompletion::accepts() packages/sql-faker/src/Generation/Output/BoundaryCompletion.php:45
- method-call SqlFaker\Generation\Output\ReverseLexemeGenerator::select() packages/sql-faker/src/Generation/Output/ReverseLexemeGenerator.php:82
- method-call SqlFaker\Sqlite\Generation\Lexeme\WindowNameLexemeGenerator::generate() packages/sql-faker/src/Sqlite/Generation/Lexeme/WindowNameLexemeGenerator.php:35
Test cases 20§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
LexemeGeneratorTestcalls
Other tests reaching this symbol 19
ChoiceLexemeGeneratorTest::testAnApplicableEmptyStreamDiffersFromNoApplicableChildcallsFixedLexemeGeneratorTestcallsMatchingLexemeGeneratorTestcallsRegisteredLexemeGeneratorTestcallsValueLexemeGeneratorTestcallsVersionCaseTestcallsVersionedLexemeGeneratorTest::testGenerateFromAnUnselectedCaseNeverGeneratesAndSharedDefinitionsRemainReusablecallsDerivationTraceTestcallsTokenGeneratorTestcallsLexemeSequenceTestcallsBoundaryCompletionTest::testAcceptsOnlyCandidatesWhosePendingLeftBoundaryHasACompletioncallsBoundaryCompletionTest::testAcceptsRejectsMissingOrPlannedAwayWitnessescallsBoundaryCompletionTest::testAcceptsUsesTheSampledLeftValueInsteadOfAnUnrelatedDefaultWitnesscallsCandidateResolverTestcallsTerminalSequenceTestcallsKeywordLexemeGeneratorTestcallsHashBoundLexemeGeneratorTestcallsKeywordLexemeGeneratorTestcallsJoinLexemeGeneratorTestcalls
Relations§
Implemented by 20
- ChoiceLexemeGenerator packages/sql-faker/src/Generation/Candidate/ChoiceLexemeGenerator.php:16
- FixedLexemeGenerator packages/sql-faker/src/Generation/Candidate/FixedLexemeGenerator.php:17
- IntegerLexemeGenerator packages/sql-faker/src/Generation/Candidate/IntegerLexemeGenerator.php:18
- MatchingLexemeGenerator packages/sql-faker/src/Generation/Candidate/MatchingLexemeGenerator.php:16
- RegisteredLexemeGenerator packages/sql-faker/src/Generation/Candidate/RegisteredLexemeGenerator.php:18
- SequenceLexemeGenerator packages/sql-faker/src/Generation/Candidate/SequenceLexemeGenerator.php:17
- ValueLexemeGenerator packages/sql-faker/src/Generation/Candidate/ValueLexemeGenerator.php:19
- VersionedLexemeGenerator packages/sql-faker/src/Generation/Candidate/VersionedLexemeGenerator.php:17
- BoundedIntegerLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/BoundedIntegerLexemeGenerator.php:22
- CharsetLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/CharsetLexemeGenerator.php:21
- CharsetValueLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/CharsetValueLexemeGenerator.php:17
- FactorLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/FactorLexemeGenerator.php:17
- KeywordLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/KeywordLexemeGenerator.php:20
- PrecisionLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/PrecisionLexemeGenerator.php:19
- ReplicationTablePatternLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/ReplicationTablePatternLexemeGenerator.php:19
- SizeNumberLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/SizeNumberLexemeGenerator.php:21
- HashBoundLexemeGenerator packages/sql-faker/src/PostgreSql/Generation/Lexeme/HashBoundLexemeGenerator.php:18
- KeywordLexemeGenerator packages/sql-faker/src/PostgreSql/Generation/Lexeme/KeywordLexemeGenerator.php:19
- JoinLexemeGenerator packages/sql-faker/src/Sqlite/Generation/Lexeme/JoinLexemeGenerator.php:19
- WindowNameLexemeGenerator packages/sql-faker/src/Sqlite/Generation/Lexeme/WindowNameLexemeGenerator.php:20
Method calls 4
- method-call SqlFaker\Generation\Candidate\MatchingLexemeGenerator::generate() packages/sql-faker/src/Generation/Candidate/MatchingLexemeGenerator.php:35
- method-call SqlFaker\Generation\Output\BoundaryCompletion::accepts() packages/sql-faker/src/Generation/Output/BoundaryCompletion.php:45
- method-call SqlFaker\Generation\Output\ReverseLexemeGenerator::select() packages/sql-faker/src/Generation/Output/ReverseLexemeGenerator.php:82
- method-call SqlFaker\Sqlite\Generation\Lexeme\WindowNameLexemeGenerator::generate() packages/sql-faker/src/Sqlite/Generation/Lexeme/WindowNameLexemeGenerator.php:35
Type declarations 11
- type SqlFaker\Generation\Candidate\ChoiceLexemeGenerator packages/sql-faker/src/Generation/Candidate/ChoiceLexemeGenerator.php:26
- type SqlFaker\Generation\Candidate\MatchingLexemeGenerator packages/sql-faker/src/Generation/Candidate/MatchingLexemeGenerator.php:23
- type SqlFaker\Generation\Candidate\SequenceLexemeGenerator packages/sql-faker/src/Generation/Candidate/SequenceLexemeGenerator.php:27
- type SqlFaker\Generation\Candidate\VersionCase packages/sql-faker/src/Generation/Candidate/VersionCase.php:19
- type SqlFaker\Generation\Output\BoundaryCompletion packages/sql-faker/src/Generation/Output/BoundaryCompletion.php:25
- type SqlFaker\Generation\Output\ReverseLexemeGenerator packages/sql-faker/src/Generation/Output/ReverseLexemeGenerator.php:27
- type SqlFaker\MySql\Generation\Lexeme\CharsetValueLexemeGenerator packages/sql-faker/src/MySql/Generation/Lexeme/CharsetValueLexemeGenerator.php:22
- type SqlFaker\MySql\Generation\Lexeme\LexicalDefinition packages/sql-faker/src/MySql/Generation/Lexeme/LexicalDefinition.php:31
- type SqlFaker\PostgreSql\Generation\Lexeme\LexicalDefinition packages/sql-faker/src/PostgreSql/Generation/Lexeme/LexicalDefinition.php:29
- type SqlFaker\Sqlite\Generation\Lexeme\LexicalDefinition packages/sql-faker/src/Sqlite/Generation/Lexeme/LexicalDefinition.php:28
- type SqlFaker\Sqlite\Generation\Lexeme\WindowNameLexemeGenerator packages/sql-faker/src/Sqlite/Generation/Lexeme/WindowNameLexemeGenerator.php:25