Home
last modified time | relevance | path

Searched refs:readFileSync (Results 1 – 25 of 364) sorted by relevance

12345678910>>...15

/third_party/typescript/tests/baselines/reference/
DambientRequireFunction.symbols9 const text = fs.readFileSync("/a/b/c");
11 >fs.readFileSync : Symbol(fs.readFileSync, Decl(node.d.ts, 2, 21))
13 >readFileSync : Symbol(fs.readFileSync, Decl(node.d.ts, 2, 21))
23 export function readFileSync(s: string): string;
24 >readFileSync : Symbol(readFileSync, Decl(node.d.ts, 2, 21))
DambientRequireFunction.types10 const text = fs.readFileSync("/a/b/c");
12 >fs.readFileSync("/a/b/c") : string
13 >fs.readFileSync : (s: string) => string
15 >readFileSync : (s: string) => string
26 export function readFileSync(s: string): string;
27 >readFileSync : (s: string) => string
DlocalRequireFunction.types16 const text = fs.readFileSync("/a/b/c");
18 >fs.readFileSync("/a/b/c") : error
19 >fs.readFileSync : error
21 >readFileSync : any
DambientRequireFunction.js7 export function readFileSync(s: string): string;
14 const text = fs.readFileSync("/a/b/c");
19 var text = fs.readFileSync("/a/b/c");
/third_party/typescript_eslint/packages/typescript-estree/tests/lib/
DsemanticInfo.test.ts1 import { readFileSync } from 'fs';
45 const code = readFileSync(join(FIXTURES_DIR, filename), 'utf8');
58 const code = readFileSync(join(FIXTURES_DIR, filename), 'utf8');
73 const code = readFileSync(join(FIXTURES_DIR, filename), 'utf8');
90 const code = readFileSync(join(FIXTURES_DIR, filename), 'utf8');
124 readFileSync(fileName, 'utf8'),
134 readFileSync(fileName, 'utf8'),
147 readFileSync(fileName, 'utf8'),
171 readFileSync(fileName, 'utf8'),
249 parseCodeAndGenerateServices(readFileSync(fileName, 'utf8'), badConfig),
[all …]
/third_party/node/test/parallel/
Dtest-fs-promises-writefile.js55 const data = fs.readFileSync(dest);
62 const data = fs.readFileSync(dest, 'utf-8');
78 const data = fs.readFileSync(dest, 'utf-8');
95 const data = fs.readFileSync(dest, 'latin1');
101 const data = fs.readFileSync(dest, 'utf-8');
107 const data = fs.readFileSync(dest, 'utf-8');
133 const data = fs.readFileSync(dest);
140 const buf = fs.readFileSync(dest);
146 const syncData = fs.readFileSync(dest, 'utf-8');
Dtest-fs-truncate-clear-file-zero.js40 assert.strictEqual(fs.readFileSync(filename).toString(), '0123456789');
42 assert.strictEqual(fs.readFileSync(filename).toString(), '01234');
48 assert.strictEqual(fs.readFileSync(filename).toString(), '0123456789');
53 assert.strictEqual(fs.readFileSync(filename).toString(), '01234');
Dtest-fs-write-buffer.js40 const found = fs.readFileSync(filename, 'utf8');
56 const found = fs.readFileSync(filename, 'utf8');
72 const found = fs.readFileSync(filename, 'utf8');
88 const found = fs.readFileSync(filename, 'utf8');
104 const found = fs.readFileSync(filename, 'utf8');
120 const found = fs.readFileSync(filename, 'utf8');
158 const found = fs.readFileSync(filename, 'utf8');
Dtest-fs-append-file-sync.js47 const fileData = fs.readFileSync(filename);
57 const fileData2 = fs.readFileSync(filename2);
69 const fileData3 = fs.readFileSync(filename3);
92 const fileData4 = fs.readFileSync(filename4);
105 const fileData5 = fs.readFileSync(filename5);
Dtest-fs-write-file-sync.js47 const content = fs.readFileSync(file, { encoding: 'utf8' });
57 const content = fs.readFileSync(file, { encoding: 'utf8' });
85 const content = fs.readFileSync(file, { encoding: 'utf8' });
101 const content = fs.readFileSync(file, { encoding: 'utf8' });
115 const content = fs.readFileSync(file, { encoding: 'utf8' });
Dtest-fs-writefile-with-fd.js24 assert.deepStrictEqual(fs.readFileSync(filename).toString(), 'Hello');
30 assert.deepStrictEqual(fs.readFileSync(filename).toString(), 'HelloWorld');
57 assert.deepStrictEqual(fs.readFileSync(file).toString(), 'Hello');
62 assert.deepStrictEqual(fs.readFileSync(file).toString(), 'HelloWorld');
Dtest-fs-truncate.js142 assert(fs.readFileSync(file1).equals(Buffer.from('Hi\u0000\u0000')));
151 assert(fs.readFileSync(file2).equals(Buffer.from('Hi\u0000\u0000')));
158 assert(fs.readFileSync(file3).equals(Buffer.from('Hi\u0000\u0000')));
168 assert(fs.readFileSync(file4).equals(Buffer.from('Hi\u0000\u0000')));
222 assert(fs.readFileSync(file5).equals(Buffer.from('')));
232 assert(fs.readFileSync(file6).equals(Buffer.from('')));
240 assert(fs.readFileSync(file7).equals(Buffer.from('')));
288 assert(fs.readFileSync(file1).equals(Buffer.alloc(0)));
296 assert(fs.readFileSync(file1).equals(Buffer.alloc(0)));
Dtest-fs-promises-file-handle-writeFile.js26 const readFileData = fs.readFileSync(filePathForHandle);
91 const data = fs.readFileSync(dest, 'utf-8');
117 const data = fs.readFileSync(dest, 'utf-8');
145 const data = fs.readFileSync(dest, 'latin1');
156 const data = fs.readFileSync(dest, 'utf-8');
167 const data = fs.readFileSync(dest, 'utf-8');
Dtest-fs-write.js51 assert.strictEqual(fs.readFileSync(fn, 'latin1'), expected);
61 assert.strictEqual(fs.readFileSync(fn, 'utf8'), expected);
71 assert.strictEqual(fs.readFileSync(fn, 'ucs2'), expected);
81 assert.strictEqual(fs.readFileSync(fn, 'utf8'), expected);
88 const found = fs.readFileSync(fn, 'utf8');
106 const found = fs.readFileSync(fn2, 'utf8');
/third_party/node/deps/npm/test/tap/
Dinstall-save-prefix.js44 t.ok(JSON.parse(fs.readFileSync(p)))
46 var pkgJson = JSON.parse(fs.readFileSync(
74 t.ok(JSON.parse(fs.readFileSync(p)))
76 var pkgJson = JSON.parse(fs.readFileSync(
105 t.ok(JSON.parse(fs.readFileSync(p)))
107 var pkgJson = JSON.parse(fs.readFileSync(
135 t.ok(JSON.parse(fs.readFileSync(p)))
137 var pkgJson = JSON.parse(fs.readFileSync(
Dinstall-save-local.js62 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8')))
64 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
89 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8')))
91 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
116 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8')))
118 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
145 t.ok(JSON.parse(fs.readFileSync(dependencyPackageJson, 'utf8')))
147 var pkgJson = JSON.parse(fs.readFileSync(pkg + '/package.json', 'utf8'))
Dformat-package-lock.js69 const pkgLockUtf8 = fs.readFileSync(pkgLockPath, 'utf-8')
71 const pkgUtf8 = fs.readFileSync(pkgPath, 'utf-8')
82 const shrinkwrapUtf8 = fs.readFileSync(shrinkwrapPath, 'utf-8')
93 const pkgLockUtf8 = fs.readFileSync(pkgLockPath, 'utf-8')
95 const pkgUtf8 = fs.readFileSync(pkgPath, 'utf-8')
106 const shrinkwrapUtf8 = fs.readFileSync(shrinkwrapPath, 'utf-8')
Dbugs.js38 var res = fs.readFileSync(outFile, 'ascii')
62 var res = fs.readFileSync(outFile, 'ascii')
86 var res = fs.readFileSync(outFile, 'ascii')
110 var res = fs.readFileSync(outFile, 'ascii')
134 var res = fs.readFileSync(outFile, 'ascii')
158 var res = fs.readFileSync(outFile, 'ascii')
/third_party/skia/tools/perf-canvaskit-puppeteer/
Dperf-canvaskit-with-puppeteer.js135 const driverHTML = fs.readFileSync(options.bench_html, 'utf8');
154 const benchmarkJS = fs.readFileSync('benchmark.js', 'utf8');
155 const canvasPerfJS = fs.readFileSync('canvas_perf.js', 'utf8');
156 const canvasKitJS = fs.readFileSync(options.canvaskit_js, 'utf8');
157 const canvasKitWASM = fs.readFileSync(options.canvaskit_wasm, 'binary');
170 const lottieJSON = fs.readFileSync(options.input_lottie, 'utf8');
174 const skpBytes = fs.readFileSync(options.input_skp, 'binary');
289 const existing_output_file_contents = fs.readFileSync(options.output, 'utf8');
/third_party/node/test/wasi/
Dtest-wasi-stdio.js6 const { closeSync, openSync, readFileSync, writeFileSync } = require('fs');
10 const buffer = readFileSync(modulePath);
32 strictEqual(readFileSync(stdoutFile, 'utf8').trim(), 'x'.repeat(31));
33 strictEqual(readFileSync(stderrFile, 'utf8').trim(), '');
/third_party/node/deps/npm/node_modules/node-gyp/test/
Dtest-find-visualstudio.js94 const data = fs.readFileSync(file)
233 const data = fs.readFileSync(file)
264 const data = fs.readFileSync(file)
293 const data = fs.readFileSync(file)
321 const data = fs.readFileSync(file)
350 const data = fs.readFileSync(file)
379 const data = fs.readFileSync(file)
408 const data = fs.readFileSync(file)
416 const data0 = JSON.parse(fs.readFileSync(path.join(__dirname, 'fixtures',
418 const data1 = JSON.parse(fs.readFileSync(path.join(__dirname, 'fixtures',
[all …]
/third_party/node/test/common/
Dfixtures.js14 return fs.readFileSync(fixturesPath(...args), enc);
15 return fs.readFileSync(fixturesPath(args), enc);
19 return fs.readFileSync(fixturesPath('keys', name), enc);
/third_party/node/test/sequential/
Dtest-debugger-heap-profiler.js13 const { readFileSync } = require('fs');
31 .then(() => JSON.parse(readFileSync(filename, 'utf8')))
35 .then(() => JSON.parse(readFileSync(filename, 'utf8')))
/third_party/node/deps/npm/node_modules/normalize-package-data/node_modules/resolve/lib/
Dsync.js25 var readFileSync = opts.readFileSync || fs.readFileSync;
98 var body = readFileSync(pkgfile);
115 var body = readFileSync(pkgfile, 'UTF8');
/third_party/node/deps/npm/test/need-npm5-update/need-only-update-save-optional/
Dupdate-save.js63 var pkgdata = JSON.parse(fs.readFileSync(path.join(pkg, 'package.json'), 'utf8'))
91 var pkgdata = JSON.parse(fs.readFileSync(path.join(pkg, 'package.json'), 'utf8'))
119 var pkgdata = JSON.parse(fs.readFileSync(path.join(pkg, 'package.json'), 'utf8'))
147 var pkgdata = JSON.parse(fs.readFileSync(path.join(pkg, 'package.json'), 'utf8'))
175 var pkgdata = JSON.parse(fs.readFileSync(path.join(pkg, 'package.json'), 'utf8'))

12345678910>>...15