Skip to content

Commit 2fdaedc

Browse files
committed
Increase coverage
1 parent 5d548b2 commit 2fdaedc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Tests/SafeDIMacrosTests/InjectableMacroTests.swift

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ import SafeDICore
4545

4646
// MARK: Behavior Tests
4747

48+
func test_providingMacros_containsInjectable() {
49+
XCTAssertTrue(SafeDIMacroPlugin().providingMacros.contains(where: { $0 == InjectableMacro.self }))
50+
}
51+
4852
func test_propertyIsFulfilledByTypeWithStringLiteral_expandsWithoutIssue() {
4953
assertMacro {
5054
"""

Tests/SafeDIMacrosTests/InstantiableMacroTests.swift

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ import SafeDICore
4646

4747
// MARK: Behavior Tests
4848

49+
func test_providingMacros_containsInstantiable() {
50+
XCTAssertTrue(SafeDIMacroPlugin().providingMacros.contains(where: { $0 == InstantiableMacro.self }))
51+
}
52+
4953
func test_extension_expandsWithoutIssueOnTypeDeclarationWhenInstantiableConformanceMissingAndConformsElsewhereIsTrue() {
5054
assertMacro {
5155
"""

0 commit comments

Comments
 (0)