fixes for Swift 6 and threading concerns
This commit is contained in:
@@ -10,6 +10,7 @@ import Testing
|
||||
|
||||
// MARK: - Distribution Sampling Unit Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("DistributionSampling")
|
||||
struct DistributionSamplingTests {
|
||||
|
||||
@@ -171,6 +172,7 @@ struct DistributionSamplingTests {
|
||||
|
||||
// MARK: - UniformNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("UniformNoise")
|
||||
struct UniformNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -254,6 +256,7 @@ struct UniformNoiseTests {
|
||||
|
||||
// MARK: - LpRandNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("LpRandNoise")
|
||||
struct LpRandNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -328,6 +331,7 @@ struct LpRandNoiseTests {
|
||||
|
||||
// MARK: - HpRandNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("HpRandNoise")
|
||||
struct HpRandNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -393,6 +397,7 @@ struct HpRandNoiseTests {
|
||||
|
||||
// MARK: - MeanRandNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("MeanRandNoise")
|
||||
struct MeanRandNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -457,6 +462,7 @@ struct MeanRandNoiseTests {
|
||||
|
||||
// MARK: - GaussNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("GaussNoise")
|
||||
struct GaussNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -538,6 +544,7 @@ struct GaussNoiseTests {
|
||||
|
||||
// MARK: - ExpRandNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("ExpRandNoise")
|
||||
struct ExpRandNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -589,6 +596,7 @@ struct ExpRandNoiseTests {
|
||||
|
||||
// MARK: - ExponentialNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("ExponentialNoise")
|
||||
struct ExponentialNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -652,6 +660,7 @@ struct ExponentialNoiseTests {
|
||||
|
||||
// MARK: - GammaNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("GammaNoise")
|
||||
struct GammaNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -716,6 +725,7 @@ struct GammaNoiseTests {
|
||||
|
||||
// MARK: - LaplaceNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("LaplaceNoise")
|
||||
struct LaplaceNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -770,6 +780,7 @@ struct LaplaceNoiseTests {
|
||||
|
||||
// MARK: - ALaplaceNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("ALaplaceNoise")
|
||||
struct ALaplaceNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -819,6 +830,7 @@ struct ALaplaceNoiseTests {
|
||||
|
||||
// MARK: - HcosNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("HcosNoise")
|
||||
struct HcosNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -868,6 +880,7 @@ struct HcosNoiseTests {
|
||||
|
||||
// MARK: - LogisticNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("LogisticNoise")
|
||||
struct LogisticNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -922,6 +935,7 @@ struct LogisticNoiseTests {
|
||||
|
||||
// MARK: - PoissonNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("PoissonNoise")
|
||||
struct PoissonNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -988,6 +1002,7 @@ struct PoissonNoiseTests {
|
||||
|
||||
// MARK: - ArcsinNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("ArcsinNoise")
|
||||
struct ArcsinNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -1040,6 +1055,7 @@ struct ArcsinNoiseTests {
|
||||
|
||||
// MARK: - BetaRandNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("BetaRandNoise")
|
||||
struct BetaRandNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -1101,6 +1117,7 @@ struct BetaRandNoiseTests {
|
||||
|
||||
// MARK: - CauchyNoise Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("CauchyNoise")
|
||||
struct CauchyNoiseTests {
|
||||
let blockSize: Int = 256
|
||||
@@ -1167,6 +1184,7 @@ struct CauchyNoiseTests {
|
||||
|
||||
// MARK: - DistributionKind Tests
|
||||
|
||||
@MainActor
|
||||
@Suite("DistributionKind")
|
||||
struct DistributionKindTests {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user