django-vue3-admin-web/node_modules/aws-crt/lib/native/crt.spec.ts
2025-10-20 21:21:14 +08:00

21 lines
501 B
TypeScript

/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
// Force memory tracing on for this suite
// Make sure env "AWS_SDK_MEMORY_TRACING=2"
import * as crt from './crt';
test('Native Memory', () => {
let tracingLevel = 0;
try {
tracingLevel = parseInt(process.env['AWS_CRT_MEMORY_TRACING'] as string);
} catch (err) { }
if (tracingLevel > 0) {
expect(crt.native_memory()).toBeGreaterThan(0);
}
});