classPrecisionLexemeGenerator
final class PrecisionLexemeGenerator
implements LexemeGenerator
Create_field::init requires M >= D; my_decimal_trim gives (0,0) its default precision.
Methods§
public function generate(LexemeInput $input): ?LexemeCandidatesUses the already resolved scale from the same precision occurrence to construct the width domain.
Parameters
$input | LexemeInput |
Returns
Test cases 13
PrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogethercallsPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#0coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#1coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#10coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#2coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#3coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#4coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#5coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#6coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#7coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#8coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#9coversPrecisionLexemeGeneratorTest::testGenerateUsesOnlyTheScaleInTheSameOccurrencecovers and calls
Calls 5
- method-call LexemeInput::terminal() line 26
- function-call
in_arrayline 27 - static-call LexemeCandidates::of() line 39
- new IntegerLexemeGenerator line 42
- method-call IntegerLexemeGenerator::generate() line 43
Test cases 22§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 13
PrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogethercallsPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#0coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#1coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#10coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#2coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#3coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#4coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#5coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#6coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#7coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#8coversPrecisionLexemeGeneratorTest::testGenerateEnforcesPrecisionAndScaleTogether#9coversPrecisionLexemeGeneratorTest::testGenerateUsesOnlyTheScaleInTheSameOccurrencecovers and calls
Other tests reaching this symbol 9
LexicalExceptionTestcallsGenerationContextTestcallsCharsetValueLexemeGeneratorTestcallsDefinitionFactoryTestcallsLexicalGrammarTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls