delta-sync
Version:
A lightweight framework for bi-directional database synchronization with automatic version tracking and conflict resolution.
57 lines (56 loc) • 1.22 kB
TypeScript
import { DatabaseAdapter } from '../core/types';
export declare class AdapterTester {
private adapter;
private testStoreName;
private testFileContent;
constructor(adapter: DatabaseAdapter, testStoreName?: string);
/**
* 运行所有测试
*/
runAllTests(): Promise<{
success: boolean;
results: Record<string, {
success: boolean;
message: string;
}>;
}>;
/**
* 测试初始化功能
*/
testInitialization(): Promise<{
success: boolean;
message: string;
}>;
/**
* 测试可用性检查
*/
testAvailability(): Promise<{
success: boolean;
message: string;
}>;
/**
* 测试基本的CRUD操作
*/
testBasicCrud(): Promise<{
success: boolean;
message: string;
}>;
/**
* 测试批量操作
*/
testBulkOperations(): Promise<{
success: boolean;
message: string;
}>;
/**
* 测试计数功能
*/
testCount(): Promise<{
success: boolean;
message: string;
}>;
testBatchFileOperations(): Promise<{
success: boolean;
message: string;
}>;
}