MCPcopy Create free account
hub / github.com/effect-app/libs / assertSuccess

Function assertSuccess

repos/effect/packages/effect/test/ConfigProvider.test.ts:5–12  ·  view source on GitHub ↗
(
  provider: ConfigProvider.ConfigProvider,
  path: ConfigProvider.Path,
  expected: ConfigProvider.Node | undefined
)

Source from the content-addressed store, hash-verified

3import { ConfigProvider, Effect, FileSystem, Layer, Path, PlatformError, Result } from "effect"
4
5const notFound = (method: string): PlatformError.PlatformError =>
6 PlatformError.systemError({
7 module: "FileSystem",
8 _tag: "NotFound",
9 method
10 })
11
12async function assertSuccess(
13 provider: ConfigProvider.ConfigProvider,
14 path: ConfigProvider.Path,
15 expected: ConfigProvider.Node

Callers 1

Calls 3

deepStrictEqualFunction · 0.90
resultMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…