-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Mutator): Add mutator for GeneratedRegex
- Loading branch information
Showing
38 changed files
with
2,404 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
389 changes: 389 additions & 0 deletions
389
src/Stryker.Core/Stryker.Core.UnitTest/Mutants/GeneratedRegexOrchestratorTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
633 changes: 633 additions & 0 deletions
633
...ts/Verified/GeneratedRegexOrchestratorTests.ComplexEmailRegexInDedicatedClass.verified.cs
Large diffs are not rendered by default.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...s/Verified/GeneratedRegexOrchestratorTests.ComplexSingleRegexInDedicatedClass.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Text.RegularExpressions; | ||
namespace StrykerNet.UnitTest.Mutants.TestResources; | ||
public partial class R { | ||
private static Regex AbcGeneratedRegex() => (StrykerNamespace.MutantControl.IsActive(13)?AbcGeneratedRegex_RegexQuantifierRemovalMutation_uJA6aLkSDZf1nNEqTTrmUwkVMpUC():(StrykerNamespace.MutantControl.IsActive(12)?AbcGeneratedRegex_RegexPredefinedCharacterClassToCharacterClassWithItsNegationChange_MDzkRwclKiIgJcKRendsP7fvRxsC():(StrykerNamespace.MutantControl.IsActive(11)?AbcGeneratedRegex_RegexPredefinedCharacterClassNullification_zvabPNkNXi5E4WVy9DbXSDBtJBcC():(StrykerNamespace.MutantControl.IsActive(10)?AbcGeneratedRegex_RegexGreedyQuantifierToReluctantQuantifierModification_w4583iXfF3f5E1wYY0vUHvf89GsC():(StrykerNamespace.MutantControl.IsActive(9)?AbcGeneratedRegex_RegexGreedyQuantifierQuantityMutation_SxSBojTcWfK90GNEzOYCcKxKPEMC():(StrykerNamespace.MutantControl.IsActive(8)?AbcGeneratedRegex_RegexGreedyQuantifierQuantityMutation_EemMBA83KH5r9vsxwuYTbZItICIC():(StrykerNamespace.MutantControl.IsActive(7)?AbcGeneratedRegex_RegexGreedyQuantifierQuantityMutation_0IPy0NkuaZuus5vyaBNObDf8YBEC():(StrykerNamespace.MutantControl.IsActive(6)?AbcGeneratedRegex_RegexCharacterClassToAnycharChange_ChZb0RJfdWiCoO7uZWgXV9GKRWoC():(StrykerNamespace.MutantControl.IsActive(5)?AbcGeneratedRegex_RegexCharacterClassShorthandNegationMutation_MlYZgMyXCSRTuWJOS9wBgXbB5tcC():(StrykerNamespace.MutantControl.IsActive(4)?AbcGeneratedRegex_RegexCharacterClassNegationMutation_sUNdnI9ukFndVf8l6TkBoumJJRQC():(StrykerNamespace.MutantControl.IsActive(3)?AbcGeneratedRegex_RegexCharacterClassChildRemoval_yxJAlmw5XA356qagdqMKq3btNCEC():(StrykerNamespace.MutantControl.IsActive(2)?AbcGeneratedRegex_RegexCharacterClassChildRemoval_e4iNMNHMRl5IY1AYBopi97YjMQwC():(StrykerNamespace.MutantControl.IsActive(1)?AbcGeneratedRegex_RegexCharacterClassChildRemoval_5XPHLFUGLBs4SAQEaHNXnV9D4MkC():(StrykerNamespace.MutantControl.IsActive(0)?AbcGeneratedRegex_RegexAnchorRemovalMutation_SdtdlVHq9QAJyltvbdr0AfzHrW4C():AbcGeneratedRegex_Original())))))))))))))); | ||
[GeneratedRegex(@"^[abc]\d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_Original(); | ||
[GeneratedRegex("[abc]\\d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexAnchorRemovalMutation_SdtdlVHq9QAJyltvbdr0AfzHrW4C(); | ||
[GeneratedRegex("^[ab]\\d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexCharacterClassChildRemoval_5XPHLFUGLBs4SAQEaHNXnV9D4MkC(); | ||
[GeneratedRegex("^[ac]\\d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexCharacterClassChildRemoval_e4iNMNHMRl5IY1AYBopi97YjMQwC(); | ||
[GeneratedRegex("^[bc]\\d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexCharacterClassChildRemoval_yxJAlmw5XA356qagdqMKq3btNCEC(); | ||
[GeneratedRegex("^[^abc]\\d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexCharacterClassNegationMutation_sUNdnI9ukFndVf8l6TkBoumJJRQC(); | ||
[GeneratedRegex("^[abc]\\D?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexCharacterClassShorthandNegationMutation_MlYZgMyXCSRTuWJOS9wBgXbB5tcC(); | ||
[GeneratedRegex("^[\\w\\W]\\d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexCharacterClassToAnycharChange_ChZb0RJfdWiCoO7uZWgXV9GKRWoC(); | ||
[GeneratedRegex("^[abc]\\d{0,0}", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexGreedyQuantifierQuantityMutation_0IPy0NkuaZuus5vyaBNObDf8YBEC(); | ||
[GeneratedRegex("^[abc]\\d{0,2}", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexGreedyQuantifierQuantityMutation_EemMBA83KH5r9vsxwuYTbZItICIC(); | ||
[GeneratedRegex("^[abc]\\d{1,1}", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexGreedyQuantifierQuantityMutation_SxSBojTcWfK90GNEzOYCcKxKPEMC(); | ||
[GeneratedRegex("^[abc]\\d??", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexGreedyQuantifierToReluctantQuantifierModification_w4583iXfF3f5E1wYY0vUHvf89GsC(); | ||
[GeneratedRegex("^[abc]d?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexPredefinedCharacterClassNullification_zvabPNkNXi5E4WVy9DbXSDBtJBcC(); | ||
[GeneratedRegex("^[abc][\\d\\D]?", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexPredefinedCharacterClassToCharacterClassWithItsNegationChange_MDzkRwclKiIgJcKRendsP7fvRxsC(); | ||
[GeneratedRegex("^[abc]\\d", RegexOptions.IgnoreCase, "en-US")] | ||
private static partial Regex AbcGeneratedRegex_RegexQuantifierRemovalMutation_uJA6aLkSDZf1nNEqTTrmUwkVMpUC(); | ||
} |
Oops, something went wrong.