Skip to content

@codesoul-co/hypha-memory / memory-server-migration-package-fixtures

模块用法

用于编写确定性测试与契约断言。Memory server migration package fixtures 模块公开 3 常量。

从包入口导入

ts
import {
  canonicalNativeMemoryServerMigrationPackagePorts,
  compliantFrameworkMemoryServerMigrationPackagePorts,
  legacyMemoryServerMigrationPackagePorts,
} from '@codesoul-co/hypha-memory';

使用要点

  • 3 个常量/枚举提供稳定值、Schema、Definition 或默认配置;应复用这些导出,避免在应用中复制内部值。

公共导出

Symbol种类签名说明
canonicalNativeMemoryServerMigrationPackagePorts常量const canonicalNativeMemoryServerMigrationPackagePorts: MemoryServerMigrationPackagePortsCanonical Native fixture: real runtime receipt plus concrete migration adapters.
compliantFrameworkMemoryServerMigrationPackagePorts常量const compliantFrameworkMemoryServerMigrationPackagePorts: MemoryServerMigrationPackagePortsFramework reference fixture: adapter-neutral in-memory behavior with canonical contracts.
legacyMemoryServerMigrationPackagePorts常量const legacyMemoryServerMigrationPackagePorts: MemoryServerMigrationPackagePortsLegacy failure fixture: every suite preserves at least one audited defect.

canonicalNativeMemoryServerMigrationPackagePorts

Canonical Native fixture: real runtime receipt plus concrete migration adapters.

声明

text
export declare const canonicalNativeMemoryServerMigrationPackagePorts: MemoryServerMigrationPackagePorts;

compliantFrameworkMemoryServerMigrationPackagePorts

Framework reference fixture: adapter-neutral in-memory behavior with canonical contracts.

声明

text
export declare const compliantFrameworkMemoryServerMigrationPackagePorts: MemoryServerMigrationPackagePorts;

legacyMemoryServerMigrationPackagePorts

Legacy failure fixture: every suite preserves at least one audited defect.

声明

text
export declare const legacyMemoryServerMigrationPackagePorts: MemoryServerMigrationPackagePorts;