fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -10,6 +10,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - _regionForSegment
|
||||
|
||||
@MainActor
|
||||
@Suite("_regionForSegment") struct RegionForSegmentTests {
|
||||
|
||||
// No loop or release — everything is preLoop
|
||||
@@ -64,6 +65,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - _segmentBoundaryTimes
|
||||
|
||||
@MainActor
|
||||
@Suite("_segmentBoundaryTimes") struct SegmentBoundaryTimesTests {
|
||||
|
||||
@Test func emptyDurations_returnsOnlyZero() {
|
||||
@@ -97,6 +99,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - _envelopeYBounds
|
||||
|
||||
@MainActor
|
||||
@Suite("_envelopeYBounds") struct EnvelopeYBoundsTests {
|
||||
|
||||
@Test func emptyLevels_returnsDefaultRange() {
|
||||
@@ -134,6 +137,7 @@ import LyrebirdSynth
|
||||
|
||||
// MARK: - Envelope.valueAtTime boundary sampling
|
||||
|
||||
@MainActor
|
||||
@Suite("Envelope valueAtTime edge cases for plotting") struct EnvelopeValueAtTimePlottingTests {
|
||||
|
||||
@Test func clampsBelowZero_returnsFirstLevel() {
|
||||
|
||||
@@ -16,6 +16,7 @@ private final class UIParamSynth: SynthesizerBase {
|
||||
override func build() { output(bus: 0, source: 0.0) }
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@Suite("LyrebirdSynthView") struct LyrebirdSynthViewTests {
|
||||
|
||||
@Test func discoverEnumeratesOnlyUIParamSlots() {
|
||||
|
||||
@@ -8,6 +8,7 @@ import Testing
|
||||
@testable import LyrebirdUI
|
||||
import LyrebirdSynth
|
||||
|
||||
@MainActor
|
||||
@Suite("MultiSlider")
|
||||
struct MultiSliderTests {
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ import Testing
|
||||
|
||||
// MARK: - Init
|
||||
|
||||
@MainActor
|
||||
@Suite("UIParamNode init") struct UIParamNodeInitTests {
|
||||
|
||||
@Test func initialValueStoredAsObservable() {
|
||||
@@ -66,6 +67,7 @@ import Testing
|
||||
|
||||
// MARK: - Atomic update round-trip
|
||||
|
||||
@MainActor
|
||||
@Suite("UIParamNode atomic update") struct UIParamNodeAtomicTests {
|
||||
|
||||
@Test func updateSetsObservableValue() {
|
||||
@@ -112,6 +114,7 @@ import Testing
|
||||
|
||||
// MARK: - calculatedSamples interpolation
|
||||
|
||||
@MainActor
|
||||
@Suite("UIParamNode calculatedSamples") struct UIParamNodeCalcTests {
|
||||
|
||||
@Test func flatBlockWhenValueUnchanged() throws {
|
||||
@@ -202,6 +205,7 @@ import Testing
|
||||
|
||||
// MARK: - ValidGeneratorInput wiring
|
||||
|
||||
@MainActor
|
||||
@Suite("UIParamNode as ValidGeneratorInput") struct UIParamNodeWiringTests {
|
||||
|
||||
@Test func usableAsSourceParameter() throws {
|
||||
@@ -258,6 +262,7 @@ import Testing
|
||||
|
||||
// MARK: - Source-swap
|
||||
|
||||
@MainActor
|
||||
@Suite("UIParamNode source swap") struct UIParamNodeSourceSwapTests {
|
||||
|
||||
@Test func sourceAssignmentRoutesThroughCalculatedSamples() {
|
||||
|
||||
@@ -10,6 +10,7 @@ import Testing
|
||||
|
||||
// MARK: - @UIParam property wrapper
|
||||
|
||||
@MainActor
|
||||
@Suite("@UIParam property wrapper") struct UIParamTests {
|
||||
|
||||
@Test func wrappedValueReturnsInitialValue() {
|
||||
@@ -102,6 +103,7 @@ import Testing
|
||||
|
||||
// MARK: - @UIParam in a SynthesizerBase subclass
|
||||
|
||||
@MainActor
|
||||
@Suite("@UIParam in synthesizer") struct UIParamInSynthTests {
|
||||
|
||||
final class ToneWithParam: SynthesizerBase {
|
||||
|
||||
Reference in New Issue
Block a user