Skip to content

Commit af8fcdf

Browse files
authored
Update README.md (#12)
* Update README.md * Update README.md
1 parent a18d9b4 commit af8fcdf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ XCTAssertTrue(isValid)
133133
- **Unimplemented Methods**: Any method that is not overridden will call `fatalError()` if invoked. Ensure all required methods are implemented when using the generated mock.
134134
- **Async and Throwing Methods**: The generated mocks handle `async` and `throws` methods appropriately, but be sure to provide closures that match the method signatures.
135135

136+
## Limitations
137+
138+
- **No Function-Level Generics**: Generics are supported only at the protocol level using associated types. Function-level generics are not currently supported. If you need generic capabilities, consider using associated types in the protocol.
139+
- **Child Protocols Cannot Mock Parent Requirements**: When mocking protocols that inherit from other protocols, the `@Mocked` macro will not automatically generate implementations for the inherited protocol requirements.
140+
- **No Support for `@` Annotations**: Attributes such as `@MainActor` are not currently supported in mock generation.
141+
136142
## Contributing
137143

138144
Contributions are welcome! If you have suggestions, issues, or improvements, feel free to open a pull request or issue on the [GitHub repository](https://github.com/0xLeif/Mocked).

0 commit comments

Comments
 (0)