"use strict"
var __createBinding =
  (this && this.__createBinding) ||
  (Object.create
    ? function (o, m, k, k2) {
        if (k2 === undefined) k2 = k
        Object.defineProperty(o, k2, {
          enumerable: true,
          get: function () {
            return m[k]
          }
        })
      }
    : function (o, m, k, k2) {
        if (k2 === undefined) k2 = k
        o[k2] = m[k]
      })
var __setModuleDefault =
  (this && this.__setModuleDefault) ||
  (Object.create
    ? function (o, v) {
        Object.defineProperty(o, "default", { enumerable: true, value: v })
      }
    : function (o, v) {
        o["default"] = v
      })
var __importStar =
  (this && this.__importStar) ||
  function (mod) {
    if (mod && mod.__esModule) return mod
    var result = {}
    if (mod != null)
      for (var k in mod)
        if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
          __createBinding(result, mod, k)
    __setModuleDefault(result, mod)
    return result
  }
var _a, _b
Object.defineProperty(exports, "__esModule", { value: true })
exports.ExecutedSpec =
  exports.SpecTypeId =
  exports.ExecutedTestCase =
  exports.ExecutedSuiteCase =
  exports.concreteExecutedSpecCase =
  exports.ExecutedSpecCase =
  exports.ExecutedSpecCaseTypeId =
    void 0
const tracing_1 = __importStar(require("../../Tracing"))
const fileName_1 = "(@effect-ts/system): _src/Testing/ExecutedSpec/index.ts"
const T = __importStar(require("../../Effect"))
exports.ExecutedSpecCaseTypeId = Symbol.for(
  "@effect-ts/system/Testing/ExecutedSpecCase"
)
class ExecutedSpecCase {
  constructor() {
    this[_a] = exports.ExecutedSpecCaseTypeId
  }
  map(f) {
    concreteExecutedSpecCase(this)
    switch (this._tag) {
      case "SuiteCase": {
        return new ExecutedSuiteCase(this.label, this.specs.map(f))
      }
      case "TestCase": {
        return new ExecutedTestCase(this.label, this.test, this.annotations)
      }
    }
  }
}
exports.ExecutedSpecCase = ExecutedSpecCase
;(_a = exports.ExecutedSpecCaseTypeId), T._E, T._A
function concreteExecutedSpecCase(_) {
  //
}
exports.concreteExecutedSpecCase = concreteExecutedSpecCase
class ExecutedSuiteCase extends ExecutedSpecCase {
  constructor(label, specs) {
    super()
    this.label = label
    this.specs = specs
    this._tag = "SuiteCase"
  }
}
exports.ExecutedSuiteCase = ExecutedSuiteCase
class ExecutedTestCase extends ExecutedSpecCase {
  constructor(label, test, annotations) {
    super()
    this.label = label
    this.test = test
    this.annotations = annotations
    this._tag = "TestCase"
  }
}
exports.ExecutedTestCase = ExecutedTestCase
exports.SpecTypeId = Symbol.for("@effect-ts/system/Testing/Spec")
/**
 * An `ExecutedSpec` is a spec that has been run to produce test results.
 */
class ExecutedSpec {
  constructor(caseValue) {
    this.caseValue = caseValue
    this[_b] = exports.SpecTypeId
  }
}
exports.ExecutedSpec = ExecutedSpec
;(_b = exports.SpecTypeId), T._E
//# sourceMappingURL=index.js.map
