pumuki 6.3.160 → 6.3.161
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -564,11 +564,34 @@ import Testing
|
|
|
564
564
|
struct LoginModernTests {
|
|
565
565
|
@Test func login() async {}
|
|
566
566
|
}
|
|
567
|
+
`;
|
|
568
|
+
const mixedWithReexportedTesting = `
|
|
569
|
+
import XCTest
|
|
570
|
+
|
|
571
|
+
final class LoginTests: XCTestCase {
|
|
572
|
+
func testLegacyLogin() {}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
struct LoginModernTests {
|
|
576
|
+
@Test func login() async {}
|
|
577
|
+
}
|
|
578
|
+
`;
|
|
579
|
+
const ignoredCommentsAndStrings = `
|
|
580
|
+
import XCTest
|
|
581
|
+
|
|
582
|
+
final class LoginTests: XCTestCase {
|
|
583
|
+
func testLegacyLogin() {
|
|
584
|
+
let text = "@Test func login() async {}"
|
|
585
|
+
// @Suite
|
|
586
|
+
}
|
|
587
|
+
}
|
|
567
588
|
`;
|
|
568
589
|
|
|
569
590
|
assert.equal(hasSwiftMixedTestingFrameworksUsage(mixedSuite), true);
|
|
591
|
+
assert.equal(hasSwiftMixedTestingFrameworksUsage(mixedWithReexportedTesting), true);
|
|
570
592
|
assert.equal(hasSwiftMixedTestingFrameworksUsage(legacyOnly), false);
|
|
571
593
|
assert.equal(hasSwiftMixedTestingFrameworksUsage(modernOnly), false);
|
|
594
|
+
assert.equal(hasSwiftMixedTestingFrameworksUsage(ignoredCommentsAndStrings), false);
|
|
572
595
|
});
|
|
573
596
|
|
|
574
597
|
test('hasSwiftXCTestAssertionUsage detecta XCTAssert y XCTFail reales', () => {
|
|
@@ -788,6 +788,10 @@ const hasSwiftTestingSuiteAttributeUsage = (source: string): boolean => {
|
|
|
788
788
|
return hasSwiftSanitizedRegexMatch(source, /\B@(?:Test|Suite)\b/);
|
|
789
789
|
};
|
|
790
790
|
|
|
791
|
+
const hasSwiftTestingFrameworkMarkerUsage = (source: string): boolean => {
|
|
792
|
+
return hasSwiftTestingImportUsage(source) || hasSwiftTestingSuiteAttributeUsage(source);
|
|
793
|
+
};
|
|
794
|
+
|
|
791
795
|
const hasSwiftXCTestCaseSubclassUsage = (source: string): boolean => {
|
|
792
796
|
return hasSwiftSanitizedRegexMatch(
|
|
793
797
|
source,
|
|
@@ -869,11 +873,7 @@ export const hasSwiftModernizableXCTestSuiteUsage = (source: string): boolean =>
|
|
|
869
873
|
};
|
|
870
874
|
|
|
871
875
|
export const hasSwiftMixedTestingFrameworksUsage = (source: string): boolean => {
|
|
872
|
-
|
|
873
|
-
return false;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
return hasSwiftTestingImportUsage(source) || hasSwiftTestingSuiteAttributeUsage(source);
|
|
876
|
+
return hasSwiftXCTestCaseSubclassUsage(source) && hasSwiftTestingFrameworkMarkerUsage(source);
|
|
877
877
|
};
|
|
878
878
|
|
|
879
879
|
export const hasSwiftXCTestAssertionUsage = (source: string): boolean => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pumuki",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.161",
|
|
4
4
|
"description": "Enterprise-grade AST Intelligence System with multi-platform support (iOS, Android, Backend, Frontend) and Feature-First + DDD + Clean Architecture enforcement. Includes dynamic violations API for intelligent querying.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|