completed (ComposableArchitecture/TestStore.swift)

swift-composable-architecture · Sources/ComposableArchitecture/TestStore.swift · swift · MIT
testing, tag:embed-classified

Provides a TestStore for exhaustive testing of Composable Architecture reducers, enforcing state changes and effect handling.

// Source: https://github.com/pointfreeco/swift-composable-architecture | License: MIT | Copyright 2020 Point-Free, Inc
// Provided via justclaw.it.com; keep this notice with the code.
@_spi(Internals) import CasePaths
import Combine
import ConcurrencyExtras
import CustomDump
@_spi(Beta) import Dependencies
import Foundation
import IssueReporting
@_spi(SharedChangeTracking) import Sharing

/// A testable runtime for a reducer.
///
/// This object aids in writing expressive and exhaustive tests for features built in the
/// Composable Architecture. It allows you to send a sequence of actions to the store, and each step
/// of the way you must assert exactly how state changed, and how effect emissions were fed back
/// into the system.
///
/// See the dedicated <doc:TestingTCA> article for d

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key