@fncts/test 0.0.12 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TestSpec.d.ts +1 -1
- package/_cjs/api.cjs +9 -9
- package/_cjs/api.cjs.map +1 -1
- package/_cjs/control/Annotations/api.cjs +1 -1
- package/_cjs/control/Annotations/api.cjs.map +1 -1
- package/_cjs/control/Annotations/live.cjs +4 -4
- package/_cjs/control/Annotations/live.cjs.map +1 -1
- package/_cjs/control/Assertion/api.cjs +2 -0
- package/_cjs/control/Assertion/api.cjs.map +1 -1
- package/_cjs/control/AssertionIO/api.cjs +2 -0
- package/_cjs/control/AssertionIO/api.cjs.map +1 -1
- package/_cjs/control/DefaultTestReporter/render.cjs +2 -0
- package/_cjs/control/DefaultTestReporter/render.cjs.map +1 -1
- package/_cjs/control/FreeBooleanAlgebraIO/api.cjs +2 -2
- package/_cjs/control/FreeBooleanAlgebraIO/api.cjs.map +1 -1
- package/_cjs/control/Gen/api/char.cjs.map +1 -1
- package/_cjs/control/Gen/api/conc.cjs +4 -3
- package/_cjs/control/Gen/api/conc.cjs.map +1 -1
- package/_cjs/control/Gen/api/double.cjs +4 -4
- package/_cjs/control/Gen/api/double.cjs.map +1 -1
- package/_cjs/control/Gen/api/float.cjs +1 -1
- package/_cjs/control/Gen/api/float.cjs.map +1 -1
- package/_cjs/control/Gen/api/struct.cjs +1 -1
- package/_cjs/control/Gen/api/struct.cjs.map +1 -1
- package/_cjs/control/Gen/api.cjs +11 -11
- package/_cjs/control/Gen/api.cjs.map +1 -1
- package/_cjs/control/Gen/definition.cjs.map +1 -1
- package/_cjs/control/Live/definition.cjs +4 -4
- package/_cjs/control/Live/definition.cjs.map +1 -1
- package/_cjs/control/RunnableSpec.cjs +10 -12
- package/_cjs/control/RunnableSpec.cjs.map +1 -1
- package/_cjs/control/Sample/api.cjs +17 -17
- package/_cjs/control/Sample/api.cjs.map +1 -1
- package/_cjs/control/Sized/api.cjs +1 -1
- package/_cjs/control/Sized/api.cjs.map +1 -1
- package/_cjs/control/Sized/live.cjs +3 -3
- package/_cjs/control/Sized/live.cjs.map +1 -1
- package/_cjs/control/Spec/api.cjs +7 -7
- package/_cjs/control/Spec/api.cjs.map +1 -1
- package/_cjs/control/Spec/definition.cjs.map +1 -1
- package/_cjs/control/TestAspect/api.cjs +7 -7
- package/_cjs/control/TestAspect/api.cjs.map +1 -1
- package/_cjs/control/TestClock/api.cjs +14 -22
- package/_cjs/control/TestClock/api.cjs.map +1 -1
- package/_cjs/control/TestClock/definition.cjs +16 -16
- package/_cjs/control/TestClock/definition.cjs.map +1 -1
- package/_cjs/control/TestConsole/api.cjs +12 -15
- package/_cjs/control/TestConsole/api.cjs.map +1 -1
- package/_cjs/control/TestConsole/definition.cjs +11 -11
- package/_cjs/control/TestConsole/definition.cjs.map +1 -1
- package/_cjs/control/TestEnvironment.cjs +3 -2
- package/_cjs/control/TestEnvironment.cjs.map +1 -1
- package/_cjs/control/TestExecutor.cjs +6 -6
- package/_cjs/control/TestExecutor.cjs.map +1 -1
- package/_cjs/control/TestLogger.cjs +1 -1
- package/_cjs/control/TestLogger.cjs.map +1 -1
- package/_cjs/control/TestRandom/api.cjs +10 -18
- package/_cjs/control/TestRandom/api.cjs.map +1 -1
- package/_cjs/control/TestRandom/definition.cjs +17 -17
- package/_cjs/control/TestRandom/definition.cjs.map +1 -1
- package/_cjs/control/TestRunner.cjs +1 -1
- package/_cjs/control/TestRunner.cjs.map +1 -1
- package/_cjs/control.cjs +6 -0
- package/_cjs/control.cjs.map +1 -0
- package/_cjs/data/LogLine/Line.cjs +2 -0
- package/_cjs/data/LogLine/Line.cjs.map +1 -1
- package/_cjs/data/LogLine/Message.cjs +4 -3
- package/_cjs/data/LogLine/Message.cjs.map +1 -1
- package/_cjs/data/TestConfig.cjs +7 -5
- package/_cjs/data/TestConfig.cjs.map +1 -1
- package/_cjs/data.cjs +6 -0
- package/_cjs/data.cjs.map +1 -0
- package/_cjs/global.cjs +6 -0
- package/_cjs/global.cjs.map +1 -0
- package/_cjs/index.cjs +6 -0
- package/_cjs/index.cjs.map +1 -0
- package/_cjs/util/math.cjs +3 -3
- package/_cjs/util/math.cjs.map +1 -1
- package/_cjs/util.cjs +6 -0
- package/_cjs/util.cjs.map +1 -0
- package/_mjs/api.mjs +9 -9
- package/_mjs/api.mjs.map +1 -1
- package/_mjs/control/Annotations/api.mjs +1 -1
- package/_mjs/control/Annotations/api.mjs.map +1 -1
- package/_mjs/control/Annotations/live.mjs +4 -4
- package/_mjs/control/Annotations/live.mjs.map +1 -1
- package/_mjs/control/Assertion/api.mjs +1 -0
- package/_mjs/control/Assertion/api.mjs.map +1 -1
- package/_mjs/control/AssertionIO/api.mjs +1 -0
- package/_mjs/control/AssertionIO/api.mjs.map +1 -1
- package/_mjs/control/DefaultTestReporter/render.mjs +1 -0
- package/_mjs/control/DefaultTestReporter/render.mjs.map +1 -1
- package/_mjs/control/FreeBooleanAlgebraIO/api.mjs +2 -2
- package/_mjs/control/FreeBooleanAlgebraIO/api.mjs.map +1 -1
- package/_mjs/control/Gen/api/char.mjs.map +1 -1
- package/_mjs/control/Gen/api/conc.mjs +1 -0
- package/_mjs/control/Gen/api/conc.mjs.map +1 -1
- package/_mjs/control/Gen/api/double.mjs +4 -4
- package/_mjs/control/Gen/api/double.mjs.map +1 -1
- package/_mjs/control/Gen/api/float.mjs +1 -1
- package/_mjs/control/Gen/api/float.mjs.map +1 -1
- package/_mjs/control/Gen/api/struct.mjs +1 -1
- package/_mjs/control/Gen/api/struct.mjs.map +1 -1
- package/_mjs/control/Gen/api.mjs +11 -11
- package/_mjs/control/Gen/api.mjs.map +1 -1
- package/_mjs/control/Gen/definition.mjs.map +1 -1
- package/_mjs/control/Live/definition.mjs +4 -4
- package/_mjs/control/Live/definition.mjs.map +1 -1
- package/_mjs/control/RunnableSpec.mjs +10 -12
- package/_mjs/control/RunnableSpec.mjs.map +1 -1
- package/_mjs/control/Sample/api.mjs +15 -15
- package/_mjs/control/Sample/api.mjs.map +1 -1
- package/_mjs/control/Sized/api.mjs +1 -1
- package/_mjs/control/Sized/api.mjs.map +1 -1
- package/_mjs/control/Sized/live.mjs +3 -3
- package/_mjs/control/Sized/live.mjs.map +1 -1
- package/_mjs/control/Spec/api.mjs +7 -7
- package/_mjs/control/Spec/api.mjs.map +1 -1
- package/_mjs/control/Spec/definition.mjs.map +1 -1
- package/_mjs/control/TestAspect/api.mjs +7 -7
- package/_mjs/control/TestAspect/api.mjs.map +1 -1
- package/_mjs/control/TestClock/api.mjs +13 -21
- package/_mjs/control/TestClock/api.mjs.map +1 -1
- package/_mjs/control/TestClock/definition.mjs +16 -16
- package/_mjs/control/TestClock/definition.mjs.map +1 -1
- package/_mjs/control/TestConsole/api.mjs +10 -13
- package/_mjs/control/TestConsole/api.mjs.map +1 -1
- package/_mjs/control/TestConsole/definition.mjs +11 -11
- package/_mjs/control/TestConsole/definition.mjs.map +1 -1
- package/_mjs/control/TestEnvironment.mjs +3 -2
- package/_mjs/control/TestEnvironment.mjs.map +1 -1
- package/_mjs/control/TestExecutor.mjs +6 -6
- package/_mjs/control/TestExecutor.mjs.map +1 -1
- package/_mjs/control/TestLogger.mjs +1 -1
- package/_mjs/control/TestLogger.mjs.map +1 -1
- package/_mjs/control/TestRandom/api.mjs +10 -18
- package/_mjs/control/TestRandom/api.mjs.map +1 -1
- package/_mjs/control/TestRandom/definition.mjs +17 -17
- package/_mjs/control/TestRandom/definition.mjs.map +1 -1
- package/_mjs/control/TestRunner.mjs +1 -1
- package/_mjs/control/TestRunner.mjs.map +1 -1
- package/_mjs/control.mjs +2 -0
- package/_mjs/control.mjs.map +1 -0
- package/_mjs/data/LogLine/Line.mjs +1 -0
- package/_mjs/data/LogLine/Line.mjs.map +1 -1
- package/_mjs/data/LogLine/Message.mjs +1 -0
- package/_mjs/data/LogLine/Message.mjs.map +1 -1
- package/_mjs/data/TestConfig.mjs +6 -5
- package/_mjs/data/TestConfig.mjs.map +1 -1
- package/_mjs/data.mjs +2 -0
- package/_mjs/data.mjs.map +1 -0
- package/_mjs/global.mjs +2 -0
- package/_mjs/global.mjs.map +1 -0
- package/_mjs/index.mjs +2 -0
- package/_mjs/index.mjs.map +1 -0
- package/_mjs/util/math.mjs +3 -3
- package/_mjs/util/math.mjs.map +1 -1
- package/_mjs/util.mjs +2 -0
- package/_mjs/util.mjs.map +1 -0
- package/_src/api.ts +9 -9
- package/_src/control/AbstractRunnableSpec.ts +2 -2
- package/_src/control/Annotations/api.ts +4 -4
- package/_src/control/AssertionIO/definition.ts +1 -1
- package/_src/control/DefaultTestReporter/render.ts +1 -1
- package/_src/control/FreeBooleanAlgebraIO/api.ts +4 -4
- package/_src/control/Gen/api/array.ts +2 -2
- package/_src/control/Gen/api/char.ts +10 -10
- package/_src/control/Gen/api/conc.ts +2 -2
- package/_src/control/Gen/api/double.ts +2 -2
- package/_src/control/Gen/api/float.ts +1 -1
- package/_src/control/Gen/api/string.ts +8 -8
- package/_src/control/Gen/api.ts +20 -20
- package/_src/control/Gen/definition.ts +2 -0
- package/_src/control/Live/definition.ts +7 -7
- package/_src/control/RunnableSpec.ts +4 -4
- package/_src/control/Sample/api.ts +12 -12
- package/_src/control/Sized/api.ts +2 -2
- package/_src/control/Sized/live.ts +1 -1
- package/_src/control/Spec/api.ts +21 -24
- package/_src/control/Spec/definition.ts +3 -3
- package/_src/control/TestAspect/api.ts +12 -14
- package/_src/control/TestAspect/definition.ts +1 -1
- package/_src/control/TestClock/api.ts +10 -10
- package/_src/control/TestClock/definition.ts +3 -3
- package/_src/control/TestConsole/api.ts +5 -5
- package/_src/control/TestEnvironment.ts +11 -10
- package/_src/control/TestExecutor.ts +4 -6
- package/_src/control/TestLogger.ts +2 -2
- package/_src/control/TestRandom/api.ts +10 -10
- package/_src/control/TestRunner.ts +3 -3
- package/_src/control.ts +26 -0
- package/_src/data/TestConfig.ts +1 -1
- package/_src/data.ts +21 -0
- package/_src/global.ts +8 -0
- package/_src/index.ts +8 -0
- package/_src/util/math.ts +3 -3
- package/_src/util.ts +3 -0
- package/api.d.ts +7 -8
- package/control/AbstractRunnableSpec.d.ts +3 -4
- package/control/Annotations/api.d.ts +7 -8
- package/control/Annotations/definition.d.ts +3 -3
- package/control/Annotations/live.d.ts +8 -8
- package/control/Assertion/api.d.ts +2 -2
- package/control/Assertion/definition.d.ts +1 -1
- package/control/AssertionIO/definition.d.ts +1 -1
- package/control/DefaultRunnableSpec.d.ts +2 -2
- package/control/DefaultTestReporter/render.d.ts +5 -6
- package/control/FreeBooleanAlgebraIO/api.d.ts +5 -5
- package/control/FreeBooleanAlgebraIO/definition.d.ts +1 -1
- package/control/Gen/api/array.d.ts +2 -3
- package/control/Gen/api/char.d.ts +9 -9
- package/control/Gen/api/conc.d.ts +2 -3
- package/control/Gen/api/double.d.ts +2 -2
- package/control/Gen/api/float.d.ts +1 -1
- package/control/Gen/api/string.d.ts +8 -9
- package/control/Gen/api.d.ts +22 -23
- package/control/Gen/definition.d.ts +4 -2
- package/control/Live/definition.d.ts +5 -7
- package/control/RunnableSpec.d.ts +2 -3
- package/control/Sample/api.d.ts +13 -13
- package/control/Sample/definition.d.ts +2 -2
- package/control/Sized/api.d.ts +3 -4
- package/control/Sized/definition.d.ts +1 -1
- package/control/Sized/live.d.ts +2 -3
- package/control/Spec/api.d.ts +17 -19
- package/control/Spec/definition.d.ts +6 -7
- package/control/Test.d.ts +1 -1
- package/control/TestAnnotationRenderer/definition.d.ts +2 -2
- package/control/TestAspect/api.d.ts +9 -10
- package/control/TestAspect/definition.d.ts +1 -1
- package/control/TestClock/api.d.ts +4 -5
- package/control/TestClock/definition.d.ts +12 -12
- package/control/TestConsole/api.d.ts +2 -3
- package/control/TestConsole/definition.d.ts +7 -7
- package/control/TestEnvironment.d.ts +4 -5
- package/control/TestExecutor.d.ts +3 -4
- package/control/TestLogger.d.ts +3 -4
- package/control/TestRandom/api.d.ts +10 -10
- package/control/TestRandom/definition.d.ts +5 -5
- package/control/TestRenderer/ConsoleRenderer.d.ts +1 -1
- package/control/TestRunner.d.ts +5 -6
- package/control.d.ts +24 -0
- package/data/AssertionResult.d.ts +1 -1
- package/data/AssertionValue/api.d.ts +1 -1
- package/data/AssertionValue/definition.d.ts +1 -1
- package/data/ExecutionResult.d.ts +1 -1
- package/data/FailureDetails.d.ts +2 -2
- package/data/FreeBooleanAlgebra/api.d.ts +2 -2
- package/data/TestAnnotation/api.d.ts +2 -2
- package/data/TestAnnotation/definition.d.ts +3 -2
- package/data/TestAnnotationMap.d.ts +1 -1
- package/data/TestArgs/definition.d.ts +1 -1
- package/data/TestConfig.d.ts +5 -6
- package/data/TestFailure.d.ts +1 -1
- package/data.d.ts +19 -0
- package/global.d.ts +9 -0
- package/index.d.ts +6 -0
- package/package.json +8 -4
- package/util/math.d.ts +4 -4
- package/util.d.ts +1 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IO } from "@fncts/io/IO";
|
|
1
|
+
import { IO } from "@fncts/io/IO/definition";
|
|
3
2
|
import { Schedule } from "@fncts/io/Schedule/definition";
|
|
4
|
-
import { Environment } from "@fncts/base/data/Environment";
|
|
5
|
-
import { Duration } from "@fncts/base/data/Duration";
|
|
3
|
+
import { Environment } from "@fncts/base/data/Environment/definition";
|
|
4
|
+
import { Duration } from "@fncts/base/data/Duration/definition";
|
|
6
5
|
import { Vector } from "@fncts/base/collection/immutable/Vector";
|
|
7
6
|
import type { TestAspect } from "@fncts/test/control/TestAspect/definition";
|
|
8
7
|
import type { TestSuccess } from "@fncts/test/data/TestSuccess";
|
|
@@ -12,13 +11,13 @@ import { TestFailure } from "@fncts/test/data/TestFailure";
|
|
|
12
11
|
export declare type TestAspectAtLeastR<R> = TestAspect<R, never>;
|
|
13
12
|
export declare type TestAspectPoly = TestAspect<unknown, never>;
|
|
14
13
|
export declare const id: TestAspectPoly;
|
|
15
|
-
export declare const ignore: TestAspectAtLeastR<
|
|
16
|
-
export declare function perTest<R, E>(f: <R1, E1>(test: IO<R1, TestFailure<E1>, TestSuccess>) => IO<R
|
|
14
|
+
export declare const ignore: TestAspectAtLeastR<Annotations>;
|
|
15
|
+
export declare function perTest<R, E>(f: <R1, E1>(test: IO<R1, TestFailure<E1>, TestSuccess>) => IO<R | R1, TestFailure<E | E1>, TestSuccess>): TestAspect<R, E>;
|
|
17
16
|
export declare function after<R, E, A>(effect: IO<R, E, A>): TestAspect<R, E>;
|
|
18
|
-
export declare function around<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R
|
|
19
|
-
export declare function aroundAll<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R
|
|
17
|
+
export declare function around<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R | R1, E>;
|
|
18
|
+
export declare function aroundAll<R, E, A, R1>(before: IO<R, E, A>, after: (a: A) => IO<R1, never, any>): TestAspect<R | R1, E>;
|
|
20
19
|
export declare function before<R0>(effect: IO<R0, never, any>): TestAspect<R0, never>;
|
|
21
20
|
export declare function beforeAll<R0, E0>(effect: IO<R0, E0, any>): TestAspect<R0, E0>;
|
|
22
21
|
export declare const eventually: TestAspect<unknown, unknown>;
|
|
23
|
-
export declare function repeat<R0>(schedule: Schedule<R0, TestSuccess, any>): TestAspect<R0 &
|
|
24
|
-
export declare function timeoutWarning(duration: Duration): TestAspect<
|
|
22
|
+
export declare function repeat<R0>(schedule: Schedule<R0, TestSuccess, any>): TestAspect<R0 & Annotations, never>;
|
|
23
|
+
export declare function timeoutWarning(duration: Duration): TestAspect<Live, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Spec } from "@fncts/test/control/Spec";
|
|
2
|
-
export declare type TestAspect<R, E> = <R1, E1>(spec: Spec<R1, E1>) => Spec<R
|
|
2
|
+
export declare type TestAspect<R, E> = <R1, E1>(spec: Spec<R1, E1>) => Spec<R | R1, E | E1>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Layer } from "@fncts/io/Layer";
|
|
2
|
-
import {
|
|
3
|
-
import { IO } from "@fncts/io/IO";
|
|
2
|
+
import { IO } from "@fncts/io/IO/definition";
|
|
4
3
|
import { Annotations } from "@fncts/test/control/Annotations";
|
|
5
4
|
import { Live } from "@fncts/test/control/Live";
|
|
6
5
|
import { Data, TestClock } from "@fncts/test/control/TestClock/definition";
|
|
@@ -8,14 +7,14 @@ import { Data, TestClock } from "@fncts/test/control/TestClock/definition";
|
|
|
8
7
|
* @tsplus static fncts.test.TestClockOps make
|
|
9
8
|
* @tsplus location "@fncts/test/control/TestClock/api"
|
|
10
9
|
*/
|
|
11
|
-
export declare function make(data: Data): Layer<
|
|
10
|
+
export declare function make(data: Data): Layer<Live | Annotations, never, TestClock>;
|
|
12
11
|
/**
|
|
13
12
|
* @tsplus static fncts.test.TestClockOps Live
|
|
14
13
|
* @tsplus location "@fncts/test/control/TestClock/api"
|
|
15
14
|
*/
|
|
16
|
-
export declare const live: Layer<
|
|
15
|
+
export declare const live: Layer<Live | Annotations, never, TestClock>;
|
|
17
16
|
/**
|
|
18
17
|
* @tsplus static fncts.test.TestClockOps adjust
|
|
19
18
|
* @tsplus location "@fncts/test/control/TestClock/api"
|
|
20
19
|
*/
|
|
21
|
-
export declare function adjust(duration: number): IO<
|
|
20
|
+
export declare function adjust(duration: number): IO<TestClock, never, void>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { List } from "@fncts/base/collection/immutable/List";
|
|
1
|
+
import { List } from "@fncts/base/collection/immutable/List/definition";
|
|
2
2
|
import { Future } from "@fncts/io/Future";
|
|
3
3
|
import { FiberId } from "@fncts/base/data/FiberId/definition";
|
|
4
|
-
import { Fiber } from "@fncts/io/Fiber";
|
|
5
|
-
import { Clock } from "@fncts/io/Clock";
|
|
4
|
+
import { Fiber } from "@fncts/io/Fiber/definition";
|
|
5
|
+
import { Clock } from "@fncts/io/Clock/definition";
|
|
6
6
|
import { Ref } from "@fncts/io/Ref";
|
|
7
7
|
import { Lazy } from "@fncts/base/data/function/definition";
|
|
8
|
-
import { Duration } from "@fncts/base/data/Duration";
|
|
9
|
-
import { IO, UIO } from "@fncts/io/IO";
|
|
10
|
-
import { HashSet } from "@fncts/base/collection/immutable/HashSet";
|
|
11
|
-
import { Equatable } from "@fncts/base/typeclass";
|
|
12
|
-
import { HashMap } from "@fncts/base/collection/immutable/HashMap";
|
|
13
|
-
import { Just, Nothing } from "@fncts/base/data/Maybe";
|
|
8
|
+
import { Duration } from "@fncts/base/data/Duration/definition";
|
|
9
|
+
import { IO, UIO } from "@fncts/io/IO/definition";
|
|
10
|
+
import { HashSet } from "@fncts/base/collection/immutable/HashSet/definition";
|
|
11
|
+
import { Equatable } from "@fncts/base/typeclass/Equatable";
|
|
12
|
+
import { HashMap } from "@fncts/base/collection/immutable/HashMap/definition";
|
|
13
|
+
import { Just, Nothing } from "@fncts/base/data/Maybe/definition";
|
|
14
14
|
import type { Annotations } from "@fncts/test/control/Annotations";
|
|
15
15
|
import type { Live } from "@fncts/test/control/Live";
|
|
16
16
|
export declare class Data {
|
|
@@ -53,12 +53,12 @@ export declare class TestClock extends Clock {
|
|
|
53
53
|
readonly annotations: Annotations;
|
|
54
54
|
readonly warningState: Ref.Synchronized<WarningData>;
|
|
55
55
|
constructor(clockState: Ref<Data>, live: Live, annotations: Annotations, warningState: Ref.Synchronized<WarningData>);
|
|
56
|
-
sleep: (ms: Lazy<Duration>) => import("@fncts/io/IO").IO<
|
|
57
|
-
currentTime: import("@fncts/io/IO").IO<
|
|
56
|
+
sleep: (ms: Lazy<Duration>) => import("@fncts/io/IO").IO<never, never, void>;
|
|
57
|
+
currentTime: import("@fncts/io/IO").IO<never, never, number>;
|
|
58
58
|
adjust(duration: number): UIO<void>;
|
|
59
59
|
setDate(date: Date): UIO<void>;
|
|
60
60
|
setTime(time: number): UIO<void>;
|
|
61
|
-
sleeps: import("@fncts/io/IO").IO<
|
|
61
|
+
sleeps: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/List").List<number>>;
|
|
62
62
|
get supervizedFibers(): UIO<HashSet<Fiber.Runtime<any, any>>>;
|
|
63
63
|
private get freeze();
|
|
64
64
|
private get delay();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Layer } from "@fncts/io/Layer";
|
|
2
|
-
import { Has } from "@fncts/base/typeclass";
|
|
3
2
|
import { Live } from "@fncts/test/control/Live";
|
|
4
3
|
import { ConsoleData } from "@fncts/test/control/TestConsole/definition";
|
|
5
4
|
import { TestConsole } from "@fncts/test/control/TestConsole/definition";
|
|
@@ -7,9 +6,9 @@ import { TestConsole } from "@fncts/test/control/TestConsole/definition";
|
|
|
7
6
|
* @tsplus static fncts.test.TestConsoleOps make
|
|
8
7
|
* @tsplus location "@fncts/test/control/TestConsole/api"
|
|
9
8
|
*/
|
|
10
|
-
export declare function make(data: ConsoleData, debug?: boolean): Layer<
|
|
9
|
+
export declare function make(data: ConsoleData, debug?: boolean): Layer<Live, never, TestConsole>;
|
|
11
10
|
/**
|
|
12
11
|
* @tsplus static fncts.test.TestConsoleOps Live
|
|
13
12
|
* @tsplus location "@fncts/test/control/TestConsole/api"
|
|
14
13
|
*/
|
|
15
|
-
export declare const live: import("@fncts/io/Layer").Layer<
|
|
14
|
+
export declare const live: import("@fncts/io/Layer").Layer<Live, never, TestConsole>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CaseClass } from "@fncts/base/data/CaseClass";
|
|
2
2
|
import { Vector } from "@fncts/base/collection/immutable/Vector";
|
|
3
3
|
import { Ref } from "@fncts/io/Ref";
|
|
4
|
-
import { FiberRef } from "@fncts/io/FiberRef";
|
|
5
|
-
import { UIO, IO } from "@fncts/io/IO";
|
|
4
|
+
import { FiberRef } from "@fncts/io/FiberRef/definition";
|
|
5
|
+
import { UIO, IO } from "@fncts/io/IO/definition";
|
|
6
6
|
import type { Console } from "@fncts/io/Console";
|
|
7
7
|
import type { Live } from "@fncts/test/control/Live";
|
|
8
8
|
export declare class ConsoleData extends CaseClass<{
|
|
@@ -24,11 +24,11 @@ export declare class TestConsole implements Console {
|
|
|
24
24
|
show(...input: ReadonlyArray<unknown>): UIO<void>;
|
|
25
25
|
print(line: string): UIO<void>;
|
|
26
26
|
error(line: string): UIO<void>;
|
|
27
|
-
clearInput: import("@fncts/io/IO").IO<
|
|
28
|
-
clearOutput: import("@fncts/io/IO").IO<
|
|
29
|
-
output: import("@fncts/io/IO").IO<
|
|
30
|
-
errOutput: import("@fncts/io/IO").IO<
|
|
31
|
-
debugOutput: import("@fncts/io/IO").IO<
|
|
27
|
+
clearInput: import("@fncts/io/IO").IO<never, never, void>;
|
|
28
|
+
clearOutput: import("@fncts/io/IO").IO<never, never, void>;
|
|
29
|
+
output: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
|
|
30
|
+
errOutput: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
|
|
31
|
+
debugOutput: import("@fncts/io/IO").IO<never, never, import("@fncts/base/collection/immutable/Vector").Vector<string>>;
|
|
32
32
|
feedLines(...lines: ReadonlyArray<string>): UIO<void>;
|
|
33
33
|
silent<R, E, A>(io: IO<R, E, A>): IO<R, E, A>;
|
|
34
34
|
debug<R, E, A>(io: IO<R, E, A>): IO<R, E, A>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Random } from "@fncts/io/Random";
|
|
1
|
+
import { Clock } from "@fncts/io/Clock/definition";
|
|
2
|
+
import { Random } from "@fncts/io/Random/definition";
|
|
4
3
|
import { Layer } from "@fncts/io/Layer";
|
|
5
4
|
import type { Console } from "@fncts/io/Console";
|
|
6
5
|
import { IOEnv } from "@fncts/io/IOEnv";
|
|
@@ -11,6 +10,6 @@ import { TestClock } from "@fncts/test/control/TestClock";
|
|
|
11
10
|
import { TestConsole } from "@fncts/test/control/TestConsole";
|
|
12
11
|
import { TestRandom } from "@fncts/test/control/TestRandom";
|
|
13
12
|
import { TestConfig } from "@fncts/test/data/TestConfig";
|
|
14
|
-
export declare type TestEnvironment =
|
|
13
|
+
export declare type TestEnvironment = Annotations | Live | Sized | TestClock | TestConfig | TestRandom | Clock | Random | Console | TestConsole;
|
|
15
14
|
export declare const LiveTestEnvironment: Layer<IOEnv, never, TestEnvironment>;
|
|
16
|
-
export declare const TestEnvironment: import("@fncts/io/Layer").Layer<
|
|
15
|
+
export declare const TestEnvironment: import("@fncts/io/Layer").Layer<never, never, TestEnvironment>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UIO } from "@fncts/io/IO";
|
|
1
|
+
import { UIO } from "@fncts/io/IO/definition";
|
|
3
2
|
import { Layer } from "@fncts/io/Layer";
|
|
4
3
|
import { Either } from "@fncts/base/data/Either/definition";
|
|
5
4
|
import type { Annotations } from "./Annotations.js";
|
|
@@ -7,7 +6,7 @@ import type { Spec } from "./Spec.js";
|
|
|
7
6
|
import type { ExecutionStrategy } from "@fncts/base/data/ExecutionStrategy";
|
|
8
7
|
import { ExecutedSpec } from "../data/ExecutedSpec.js";
|
|
9
8
|
export interface TestExecutor<R> {
|
|
10
|
-
readonly run: <E>(spec: Spec<R
|
|
9
|
+
readonly run: <E>(spec: Spec<R | Annotations, E>, defExec: ExecutionStrategy) => UIO<ExecutedSpec<E>>;
|
|
11
10
|
readonly environment: Layer<unknown, never, R>;
|
|
12
11
|
}
|
|
13
|
-
export declare function defaultTestExecutor<R>(env: Layer<
|
|
12
|
+
export declare function defaultTestExecutor<R>(env: Layer<never, never, R | Annotations>): TestExecutor<R | Annotations>;
|
package/control/TestLogger.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { UIO, URIO } from "@fncts/io/IO";
|
|
1
|
+
import { UIO, URIO } from "@fncts/io/IO/definition";
|
|
2
2
|
import { Layer } from "@fncts/io/Layer";
|
|
3
|
-
import { Has } from "@fncts/base/typeclass";
|
|
4
3
|
/**
|
|
5
4
|
* @tsplus type fncts.test.TestLogger
|
|
6
5
|
* @tsplus companion fncts.test.TestLoggerOps
|
|
@@ -17,9 +16,9 @@ export declare const TestLoggerTag: import("@fncts/base/data/Tag").Tag<TestLogge
|
|
|
17
16
|
* @tsplus static fncts.test.TestLoggerOps fromConsole
|
|
18
17
|
* @tsplus location "@fncts/test/control/TestLogger"
|
|
19
18
|
*/
|
|
20
|
-
export declare const fromConsole: Layer<
|
|
19
|
+
export declare const fromConsole: Layer<never, never, TestLogger>;
|
|
21
20
|
/**
|
|
22
21
|
* @tsplus static fncts.test.TestLoggerOps logLine
|
|
23
22
|
* @tsplus location "@fncts/test/control/TestLogger"
|
|
24
23
|
*/
|
|
25
|
-
export declare function logLine(line: string): URIO<
|
|
24
|
+
export declare function logLine(line: string): URIO<TestLogger, void>;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { Byte } from "@fncts/base/data/Byte";
|
|
2
2
|
import { Layer } from "@fncts/io/Layer";
|
|
3
|
-
import {
|
|
3
|
+
import { Random } from "@fncts/io/Random/definition";
|
|
4
4
|
import { Data, TestRandom } from "@fncts/test/control/TestRandom";
|
|
5
5
|
/**
|
|
6
6
|
* @tsplus static fncts.test.TestRandom feedInts
|
|
7
7
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
8
8
|
*/
|
|
9
|
-
export declare function feedInts(...ints: ReadonlyArray<number>): import("@fncts/io/IO").IO<
|
|
9
|
+
export declare function feedInts(...ints: ReadonlyArray<number>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
10
10
|
/**
|
|
11
11
|
* @tsplus static fncts.test.TestRandom feedBytes
|
|
12
12
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
13
13
|
*/
|
|
14
|
-
export declare function feedBytes(...bytes: ReadonlyArray<ReadonlyArray<Byte>>): import("@fncts/io/IO").IO<
|
|
14
|
+
export declare function feedBytes(...bytes: ReadonlyArray<ReadonlyArray<Byte>>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
15
15
|
/**
|
|
16
16
|
* @tsplus static fncts.test.TestRandom feedChars
|
|
17
17
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
18
18
|
*/
|
|
19
|
-
export declare function feedChars(...chars: ReadonlyArray<string>): import("@fncts/io/IO").IO<
|
|
19
|
+
export declare function feedChars(...chars: ReadonlyArray<string>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
20
20
|
/**
|
|
21
21
|
* @tsplus static fncts.test.TestRandom feedDoubles
|
|
22
22
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
23
23
|
*/
|
|
24
|
-
export declare function feedDoubles(...doubles: ReadonlyArray<number>): import("@fncts/io/IO").IO<
|
|
24
|
+
export declare function feedDoubles(...doubles: ReadonlyArray<number>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
25
25
|
/**
|
|
26
26
|
* @tsplus static fncts.test.TestRandom feedStrings
|
|
27
27
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
28
28
|
*/
|
|
29
|
-
export declare function feedStrings(...strings: ReadonlyArray<string>): import("@fncts/io/IO").IO<
|
|
29
|
+
export declare function feedStrings(...strings: ReadonlyArray<string>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
30
30
|
/**
|
|
31
31
|
* @tsplus static fncts.test.TestRandom feedBooleans
|
|
32
32
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
33
33
|
*/
|
|
34
|
-
export declare function feedBooleans(...booleans: ReadonlyArray<boolean>): import("@fncts/io/IO").IO<
|
|
34
|
+
export declare function feedBooleans(...booleans: ReadonlyArray<boolean>): import("@fncts/io/IO").IO<TestRandom, never, void>;
|
|
35
35
|
/**
|
|
36
36
|
* @tsplus static fncts.test.TestRandomOps make
|
|
37
37
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
38
38
|
*/
|
|
39
|
-
export declare function make(initialData: Data): Layer<
|
|
39
|
+
export declare function make(initialData: Data): Layer<never, never, Random | TestRandom>;
|
|
40
40
|
/**
|
|
41
41
|
* @tsplus static fncts.test.TestRandomOps Deterministic
|
|
42
42
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
43
43
|
*/
|
|
44
|
-
export declare const determinictic: import("@fncts/io/Layer").Layer<
|
|
44
|
+
export declare const determinictic: import("@fncts/io/Layer").Layer<never, never, import("@fncts/io/Random").Random | TestRandom>;
|
|
45
45
|
/**
|
|
46
46
|
* @tsplus static fncts.test.TestRandomOps Random
|
|
47
47
|
* @tsplus location "@fncts/test/control/TestRandom/api"
|
|
48
48
|
*/
|
|
49
|
-
export declare const random: Layer<unknown, never,
|
|
49
|
+
export declare const random: Layer<unknown, never, TestRandom>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Random } from "@fncts/io/Random";
|
|
1
|
+
import { Random } from "@fncts/io/Random/definition";
|
|
2
2
|
import { Ref } from "@fncts/io/Ref";
|
|
3
|
-
import { UIO, IO } from "@fncts/io/IO";
|
|
3
|
+
import { UIO, IO } from "@fncts/io/IO/definition";
|
|
4
4
|
import { Vector } from "@fncts/base/collection/immutable/Vector";
|
|
5
5
|
import { Byte } from "@fncts/base/data/Byte";
|
|
6
|
-
import { ImmutableQueue } from "@fncts/base/collection/immutable/Queue";
|
|
7
|
-
import { Maybe } from "@fncts/base/data/Maybe";
|
|
8
|
-
import { List } from "@fncts/base/collection/immutable/List";
|
|
6
|
+
import { ImmutableQueue } from "@fncts/base/collection/immutable/Queue/definition";
|
|
7
|
+
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
8
|
+
import { List } from "@fncts/base/collection/immutable/List/definition";
|
|
9
9
|
import type { ArrayInt } from "@fncts/base/util/rand";
|
|
10
10
|
/**
|
|
11
11
|
* @tsplus static fncts.test.TestRandomOps Tag
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector } from "@fncts/base/collection/immutable/Vector";
|
|
2
|
-
import { List } from "@fncts/base/collection/immutable/List";
|
|
2
|
+
import { List } from "@fncts/base/collection/immutable/List/definition";
|
|
3
3
|
import type { ExecutionResult } from "../../data/ExecutionResult.js";
|
|
4
4
|
import type { TestAnnotationRenderer } from "../TestAnnotationRenderer.js";
|
|
5
5
|
/**
|
package/control/TestRunner.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Layer } from "@fncts/io/Layer";
|
|
2
|
-
import {
|
|
3
|
-
import { URIO } from "@fncts/io/IO";
|
|
2
|
+
import { URIO } from "@fncts/io/IO/definition";
|
|
4
3
|
import { ExecutionStrategy } from "@fncts/base/data/ExecutionStrategy";
|
|
5
|
-
import { Clock } from "@fncts/io/Clock";
|
|
4
|
+
import { Clock } from "@fncts/io/Clock/definition";
|
|
6
5
|
import type { RuntimeConfig } from "@fncts/io/RuntimeConfig";
|
|
7
6
|
import type { Annotations } from "@fncts/test/control/Annotations";
|
|
8
7
|
import type { TestReporter } from "@fncts/test/control/DefaultTestReporter/render";
|
|
@@ -14,7 +13,7 @@ export declare class TestRunner<R, E> {
|
|
|
14
13
|
readonly executor: TestExecutor<R>;
|
|
15
14
|
readonly runtimeConfig: RuntimeConfig;
|
|
16
15
|
readonly reporter: TestReporter<E>;
|
|
17
|
-
readonly bootstrap: Layer<
|
|
18
|
-
constructor(executor: TestExecutor<R>, runtimeConfig?: RuntimeConfig, reporter?: TestReporter<E>, bootstrap?: Layer<
|
|
19
|
-
run(spec: Spec<R
|
|
16
|
+
readonly bootstrap: Layer<never, never, TestLogger>;
|
|
17
|
+
constructor(executor: TestExecutor<R>, runtimeConfig?: RuntimeConfig, reporter?: TestReporter<E>, bootstrap?: Layer<never, never, TestLogger>);
|
|
18
|
+
run(spec: Spec<R | Annotations, E>): URIO<TestLogger, ExecutedSpec<E>>;
|
|
20
19
|
}
|
package/control.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type {} from "./control/AbstractRunnableSpec.js";
|
|
2
|
+
export type {} from "./control/Annotations.js";
|
|
3
|
+
export type {} from "./control/Assertion.js";
|
|
4
|
+
export type {} from "./control/AssertionIO.js";
|
|
5
|
+
export type {} from "./control/DefaultRunnableSpec.js";
|
|
6
|
+
export type {} from "./control/DefaultTestReporter.js";
|
|
7
|
+
export type {} from "./control/FreeBooleanAlgebraIO.js";
|
|
8
|
+
export type {} from "./control/Gen.js";
|
|
9
|
+
export type {} from "./control/Live.js";
|
|
10
|
+
export type {} from "./control/RunnableSpec.js";
|
|
11
|
+
export type {} from "./control/Sample.js";
|
|
12
|
+
export type {} from "./control/Sized.js";
|
|
13
|
+
export type {} from "./control/Spec.js";
|
|
14
|
+
export type {} from "./control/SummaryBuilder.js";
|
|
15
|
+
export type {} from "./control/Test.js";
|
|
16
|
+
export type {} from "./control/TestAnnotationRenderer.js";
|
|
17
|
+
export type {} from "./control/TestAspect.js";
|
|
18
|
+
export type {} from "./control/TestClock.js";
|
|
19
|
+
export type {} from "./control/TestConsole.js";
|
|
20
|
+
export type {} from "./control/TestEnvironment.js";
|
|
21
|
+
export type {} from "./control/TestExecutor.js";
|
|
22
|
+
export type {} from "./control/TestLogger.js";
|
|
23
|
+
export type {} from "./control/TestRandom.js";
|
|
24
|
+
export type {} from "./control/TestRunner.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Maybe, Nothing } from "@fncts/base/data/Maybe";
|
|
1
|
+
import { Maybe, Nothing } from "@fncts/base/data/Maybe/definition";
|
|
2
2
|
import type { FailureDetails } from "./FailureDetails.js";
|
|
3
3
|
import type { GenFailureDetails } from "./GenFailureDetails.js";
|
|
4
4
|
export declare class FailureDetailsResult {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LazyValue } from "@fncts/base/control/LazyValue";
|
|
2
|
-
import { Maybe, Nothing } from "@fncts/base/data/Maybe";
|
|
2
|
+
import { Maybe, Nothing } from "@fncts/base/data/Maybe/definition";
|
|
3
3
|
import type { AssertionIO } from "../../control/AssertionIO/definition.js";
|
|
4
4
|
import type { FreeBooleanAlgebra } from "../FreeBooleanAlgebra.js";
|
|
5
5
|
export declare const AssertionValueTypeId: unique symbol;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { List } from "@fncts/base/collection/immutable/List";
|
|
1
|
+
import { List } from "@fncts/base/collection/immutable/List/definition";
|
|
2
2
|
import type { Line } from "./LogLine/Line.js";
|
|
3
3
|
import type { TestAnnotationMap } from "./TestAnnotationMap.js";
|
|
4
4
|
export interface Failed {
|
package/data/FailureDetails.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Cons } from "@fncts/base/collection/immutable/List";
|
|
2
|
-
import { Maybe } from "@fncts/base/data/Maybe";
|
|
1
|
+
import { Cons } from "@fncts/base/collection/immutable/List/definition";
|
|
2
|
+
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
3
3
|
import type { FailureDetailsResult } from "./AssertionResult.js";
|
|
4
4
|
import type { AssertionValue } from "./AssertionValue.js";
|
|
5
5
|
import type { FreeBooleanAlgebra } from "./FreeBooleanAlgebra.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Maybe } from "@fncts/base/data/Maybe";
|
|
1
|
+
import { Maybe } from "@fncts/base/data/Maybe/definition";
|
|
2
2
|
import { Either } from "@fncts/base/data/Either/definition";
|
|
3
|
-
import { Eval } from "@fncts/base/control/Eval";
|
|
3
|
+
import { Eval } from "@fncts/base/control/Eval/definition";
|
|
4
4
|
import { FreeBooleanAlgebra } from "./definition.js";
|
|
5
5
|
/**
|
|
6
6
|
* @tsplus fluent fncts.test.FreeBooleanAlgebra and
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HashSet } from "@fncts/base/collection/immutable/HashSet";
|
|
1
|
+
import { HashSet } from "@fncts/base/collection/immutable/HashSet/definition";
|
|
2
2
|
import { Either } from "@fncts/base/data/Either/definition";
|
|
3
3
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
4
4
|
import { Ref } from "@fncts/io/Ref";
|
|
5
|
-
import { Fiber } from "@fncts/io/Fiber";
|
|
5
|
+
import { Fiber } from "@fncts/io/Fiber/definition";
|
|
6
6
|
import { TestAnnotation } from "./definition.js";
|
|
7
7
|
export declare const IgnoredTag: import("@fncts/base/data/Tag.js").Tag<number>;
|
|
8
8
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Hashable
|
|
2
|
-
import {
|
|
1
|
+
import { Hashable } from "@fncts/base/typeclass/Hashable";
|
|
2
|
+
import { Equatable } from "@fncts/base/typeclass/Equatable";
|
|
3
|
+
import { Tag } from "@fncts/base/data/Tag/definition";
|
|
3
4
|
export declare const TestAnnotationTypeId: unique symbol;
|
|
4
5
|
export declare type TestAnnotationTypeId = typeof TestAnnotationTypeId;
|
|
5
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HashMap } from "@fncts/base/collection/immutable/HashMap";
|
|
1
|
+
import { HashMap } from "@fncts/base/collection/immutable/HashMap/definition";
|
|
2
2
|
import { Conc } from "@fncts/base/collection/immutable/Conc";
|
|
3
3
|
import type { TestAnnotation } from "./TestAnnotation.js";
|
|
4
4
|
export declare class TestAnnotationMap {
|
package/data/TestConfig.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Layer } from "@fncts/io/Layer";
|
|
2
|
-
import { Has } from "@fncts/base/typeclass";
|
|
3
2
|
/**
|
|
4
3
|
* @tsplus type fncts.test.data.TestConfig
|
|
5
4
|
* @tsplus companion fncts.test.data.TestConfigOps
|
|
@@ -19,24 +18,24 @@ export declare const TestConfigTag: import("@fncts/base/data/Tag").Tag<TestConfi
|
|
|
19
18
|
* @tsplus static fncts.test.data.TestConfigOps Live
|
|
20
19
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
21
20
|
*/
|
|
22
|
-
export declare function live(_: TestConfig): Layer<
|
|
21
|
+
export declare function live(_: TestConfig): Layer<never, never, TestConfig>;
|
|
23
22
|
/**
|
|
24
23
|
* @tsplus static fncts.test.data.TestConfigOps repeats
|
|
25
24
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
26
25
|
*/
|
|
27
|
-
export declare const repeats: import("@fncts/io/IO").IO<
|
|
26
|
+
export declare const repeats: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
|
28
27
|
/**
|
|
29
28
|
* @tsplus static fncts.test.data.TestConfigOps retries
|
|
30
29
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
31
30
|
*/
|
|
32
|
-
export declare const retries: import("@fncts/io/IO").IO<
|
|
31
|
+
export declare const retries: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
|
33
32
|
/**
|
|
34
33
|
* @tsplus static fncts.test.data.TestConfigOps samples
|
|
35
34
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
36
35
|
*/
|
|
37
|
-
export declare const samples: import("@fncts/io/IO").IO<
|
|
36
|
+
export declare const samples: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
|
38
37
|
/**
|
|
39
38
|
* @tsplus static fncts.test.data.TestConfigOps shrinks
|
|
40
39
|
* @tsplus location "@fncts/test/data/TestConfig"
|
|
41
40
|
*/
|
|
42
|
-
export declare const shrinks: import("@fncts/io/IO").IO<
|
|
41
|
+
export declare const shrinks: import("@fncts/io/IO").IO<TestConfig, never, number>;
|
package/data/TestFailure.d.ts
CHANGED
package/data.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type {} from "./data/AssertionData.js";
|
|
2
|
+
export type {} from "./data/AssertionResult.js";
|
|
3
|
+
export type {} from "./data/AssertionValue.js";
|
|
4
|
+
export type {} from "./data/ExecutedSpec.js";
|
|
5
|
+
export type {} from "./data/ExecutionResult.js";
|
|
6
|
+
export type {} from "./data/FailureDetails.js";
|
|
7
|
+
export type {} from "./data/FreeBooleanAlgebra.js";
|
|
8
|
+
export type {} from "./data/GenFailureDetails.js";
|
|
9
|
+
export type {} from "./data/LogLine.js";
|
|
10
|
+
export type {} from "./data/Render.js";
|
|
11
|
+
export type {} from "./data/RenderParam.js";
|
|
12
|
+
export type {} from "./data/Summary.js";
|
|
13
|
+
export type {} from "./data/TestAnnotation.js";
|
|
14
|
+
export type {} from "./data/TestAnnotationMap.js";
|
|
15
|
+
export type {} from "./data/TestArgs.js";
|
|
16
|
+
export type {} from "./data/TestConfig.js";
|
|
17
|
+
export type {} from "./data/TestFailure.js";
|
|
18
|
+
export type {} from "./data/TestSuccess.js";
|
|
19
|
+
export type {} from "./data/TestTimeoutException.js";
|
package/global.d.ts
ADDED
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fncts/test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@fncts/base": "0.0.
|
|
6
|
-
"@fncts/io": "0.0.
|
|
7
|
-
"@fncts/typelevel": "0.0.
|
|
5
|
+
"@fncts/base": "0.0.15",
|
|
6
|
+
"@fncts/io": "0.0.15",
|
|
7
|
+
"@fncts/typelevel": "0.0.12"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
"./*": {
|
|
11
11
|
"import": "./_mjs/*.mjs",
|
|
12
12
|
"require": "./_cjs/*.cjs"
|
|
13
|
+
},
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./_mjs/index.mjs",
|
|
16
|
+
"require": "./_cjs/index.cjs"
|
|
13
17
|
}
|
|
14
18
|
},
|
|
15
19
|
"publishConfig": {
|
package/util/math.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IO,
|
|
1
|
+
import { IO, UIO } from "@fncts/io/IO/definition";
|
|
2
2
|
/** @internal */
|
|
3
3
|
export declare const MIN_VALUE_32: number;
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare const MAX_VALUE_32: number;
|
|
6
6
|
/** @internal */
|
|
7
7
|
export declare const EPSILON_32: number;
|
|
8
|
-
export declare function safeFloatToIndex(f: number, label: string): IO<
|
|
8
|
+
export declare function safeFloatToIndex(f: number, label: string): IO<never, never, number>;
|
|
9
9
|
export declare function decomposeFloat(f: number): {
|
|
10
10
|
exponent: number;
|
|
11
11
|
significand: number;
|
|
@@ -110,7 +110,7 @@ export declare function indexToDouble(index: ArrayInt64): number;
|
|
|
110
110
|
*
|
|
111
111
|
* @internal
|
|
112
112
|
*/
|
|
113
|
-
export declare function safeDoubleToIndex(d: number, label: string): IO<
|
|
113
|
+
export declare function safeDoubleToIndex(d: number, label: string): IO<never, never, ArrayInt64>;
|
|
114
114
|
export declare function nextUp(x: number): number;
|
|
115
115
|
export declare function nextAfter(x: number, y: number): number;
|
|
116
116
|
export declare function computeBiasedRanges(min: ArrayInt64, max: ArrayInt64, biasedRanges?: {
|
|
@@ -123,7 +123,7 @@ export declare function computeBiasedRanges(min: ArrayInt64, max: ArrayInt64, bi
|
|
|
123
123
|
export declare function computeArrayInt64GenerateRange(min: ArrayInt64, max: ArrayInt64, biasFactor: number | undefined, biasedRanges: {
|
|
124
124
|
min: ArrayInt64;
|
|
125
125
|
max: ArrayInt64;
|
|
126
|
-
}[] | undefined):
|
|
126
|
+
}[] | undefined): UIO<{
|
|
127
127
|
min: ArrayInt64;
|
|
128
128
|
max: ArrayInt64;
|
|
129
129
|
}>;
|
package/util.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type {} from "./util/math.js";
|