Skip to content

Commit 8848641

Browse files
committed
Adding public protection, and update documentation for #14
1 parent 07abcc3 commit 8848641

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/OTPKit/Components/Producer.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,13 +755,15 @@ final public class OTPProducer: Component {
755755
/**
756756
Resets the transform message folio numbers of one or more System Numbers for this Producer.
757757

758+
If no System Numbers are provided, folio numbers will be reset for all System Numbers.
759+
758760
This should only be used by test applications for the purpose of testing Consumer implementations.
759761

760762
- Parameters:
761763
- systemNumbers: Optional: An optional array of System Numbers to be reset.
762764

763765
*/
764-
func testOnlyResetTransformFolioNumbers(for systemNumbers: [SystemNumber]? = nil) {
766+
public func testOnlyResetTransformFolioNumbers(for systemNumbers: [SystemNumber]? = nil) {
765767
Self.queue.sync(flags: .barrier) {
766768
if let systemNumbers = systemNumbers {
767769
transformFolios = transformFolios.enumerated().map { systemNumbers.contains(UInt8($0.offset)+1) ? FolioNumber.min : $0.element }

0 commit comments

Comments
 (0)