@@ -114,6 +114,15 @@
Loading
114 114
        return self._select(selector)
115 115
    }
116 116
117 +
    /// Provides a subscription that selects a substate of the state of the original subscription.
118 +
    /// - parameter keyPath: A key path from a state to a substate
119 +
    public func select<Substate>(
120 +
        _ keyPath: KeyPath<State, Substate>
121 +
        ) -> Subscription<Substate>
122 +
    {
123 +
        return self._select { $0[keyPath: keyPath] }
124 +
    }
125 +
117 126
    /// Provides a subscription that skips certain state updates of the original subscription.
118 127
    /// - parameter isRepeat: A closure that determines whether a given state update is a repeat and
119 128
    /// thus should be skipped and not forwarded to subscribers.
Files Coverage
ReSwift 99.48%
Project Totals (6 files) 99.48%
1056.1
TRAVIS_RUBY_VERSION=default
TRAVIS_OS_NAME=osx
1056.2
TRAVIS_RUBY_VERSION=default
TRAVIS_OS_NAME=osx
1056.5
TRAVIS_RUBY_VERSION=default
TRAVIS_OS_NAME=osx
1056.3
TRAVIS_RUBY_VERSION=default
TRAVIS_OS_NAME=osx
1056.6
TRAVIS_RUBY_VERSION=default
TRAVIS_OS_NAME=osx
1
ignore:
2
  - "ReSwiftTests"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading