classStartRule
final class StartRule
implements RewriteRule
sql_yacc.yy requires the IO thread when START REPLICA/SLAVE supplies authentication options.
Methods§
public function rewrite(TerminalSequence $sequence): TerminalSequenceAdds the IO thread to an explicitly SQL-only start, keeping the authentication values intact.
Parameters
$sequence | TerminalSequence |
Returns
Test cases 20
StartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresItcallsStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#0coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#1coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#10coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#11coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#12coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#13coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#14coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#15coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#16coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#17coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#18coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#2coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#3coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#4coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#5coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#6coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#7coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#8coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#9covers
Calls 8
- method-call TerminalSequence::occurrences() line 24
- method-call TerminalSequence::range() line 25
- method-call TerminalSequence::child() line 26
- method-call TerminalSequence::nameAt() line 28
- function-call
array_sliceline 31 - method-call TerminalSequence::names() line 31
- function-call
in_arrayline 33 - function-call
array_intersectline 34
Test cases 26§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 20
StartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresItcallsStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#0coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#1coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#10coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#11coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#12coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#13coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#14coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#15coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#16coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#17coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#18coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#2coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#3coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#4coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#5coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#6coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#7coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#8coversStartRuleTest::testRewriteEnablesTheIoThreadOnlyWhenAuthenticationRequiresIt#9covers
Other tests reaching this symbol 6
GenerationContextTestcallsRewriteDefinitionsTestcallsMySqlProviderTestcallsPostgreSqlProviderTestcallsSqlGeneratorFactoryTestcallsSqliteProviderTestcalls