MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeTmpDir

Function makeTmpDir

packages/oauth/test/storage.test.ts:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15import type { TokenInfo } from '../src/types';
16
17function makeTmpDir(): string {
18 const dir = join(
19 tmpdir(),
20 `kimi-storage-test-${Date.now()}-${Math.random().toString(36).slice(2)}`,
21 );
22 mkdirSync(dir, { recursive: true });
23 return dir;
24}
25
26function sampleToken(overrides: Partial<TokenInfo> = {}): TokenInfo {
27 return {

Callers 1

storage.test.tsFile · 0.85

Calls 2

nowMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected