Update test framework: fix run_tests.py to support all test files, add auto-import-check for test files

This commit is contained in:
qiaoxinjiu
2026-05-09 15:11:30 +08:00
parent eb053a347f
commit eaba8328da
21739 changed files with 2236758 additions and 719 deletions

37
node_modules/jsondiffpatch/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,37 @@
import DiffPatcher from './diffpatcher.js';
import dateReviver from './date-reviver.js';
export { DiffPatcher, dateReviver };
export function create(options) {
return new DiffPatcher(options);
}
let defaultInstance;
export function diff(left, right) {
if (!defaultInstance) {
defaultInstance = new DiffPatcher();
}
return defaultInstance.diff(left, right);
}
export function patch(left, delta) {
if (!defaultInstance) {
defaultInstance = new DiffPatcher();
}
return defaultInstance.patch(left, delta);
}
export function unpatch(right, delta) {
if (!defaultInstance) {
defaultInstance = new DiffPatcher();
}
return defaultInstance.unpatch(right, delta);
}
export function reverse(delta) {
if (!defaultInstance) {
defaultInstance = new DiffPatcher();
}
return defaultInstance.reverse(delta);
}
export function clone(value) {
if (!defaultInstance) {
defaultInstance = new DiffPatcher();
}
return defaultInstance.clone(value);
}