Home
last modified time | relevance | path

Searched refs:readFile (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/third_party/node/test/es-module/
Dtest-esm-live-binding.mjs5 import fs, { readFile, readFileSync } from 'fs';
9 const readFileDescriptor = Reflect.getOwnPropertyDescriptor(fs, 'readFile');
16 Reflect.deleteProperty(fs, 'readFile');
19 assert.deepStrictEqual([fs.readFile, readFile], [undefined, undefined]);
21 fs.readFile = fn;
24 assert.deepStrictEqual([fs.readFile(), readFile()], [s, s]);
26 Reflect.defineProperty(fs, 'readFile', {
33 assert.deepStrictEqual([fs.readFile(), readFile()], [s, s]);
35 Reflect.deleteProperty(fs, 'readFile');
38 assert.deepStrictEqual([fs.readFile, readFile], [undefined, undefined]);
[all …]
/third_party/typescript/tests/baselines/reference/
Dautolift3.types19 …{ var fso = 0 return { readFile: function(path: s…
20 …{ var fso = 0 return { readFile: function(path: s…
21 …{ var fso = 0 return { readFile: function(path: s…
24 >CScriptIO : { readFile: (path: string) => string; }
25readFile: function(path: string): string { return fso.toString(); …
26readFile: function(path: string): string { return fso.toString(); …
27readFile: function(path: string): string { return fso.toString(); …
34readFile: function(path: string): string { return fso.toString(); …
36 readFile: function(path: string): string {
37 >readFile : (path: string) => string
DAPISample_WatchWithOwnWatchHost.js33 readFile: ts.sys.readFile,
85 readFile: ts.sys.readFile, property
DundeclaredModuleError.types29 fs.readFile(originalFilePath, () => {
30 >fs.readFile(originalFilePath, () => { readdir(covFileDir, () => { } , (error:…
31 >fs.readFile : any
33 >readFile : any
Dautolift3.symbols25 readFile: function(path: string): string {
26 >readFile : Symbol(readFile, Decl(autolift3.ts, 12, 24))
/third_party/node/test/parallel/
Dtest-fs-whatwg-url.js24 fs.readFile(url, common.mustSucceed((data) => {
33 fs.readFile(httpUrl, common.mustNotCall());
47 fs.readFile(new URL(`file:///c:/tmp/${i}`), common.mustNotCall());
58 fs.readFile(new URL('file:///c:/tmp/%00test'), common.mustNotCall());
72 fs.readFile(new URL(`file:///c:/tmp/${i}`), common.mustNotCall());
82 fs.readFile(new URL('file://hostname/a/b/c'), common.mustNotCall());
92 fs.readFile(new URL('file:///tmp/%00test'), common.mustNotCall());
Dtest-fs-promises-readfile.js8 const { writeFile, readFile } = require('fs').promises;
27 const readBuffer = await readFile(fn);
42 const hostname = await readFile('/proc/sys/kernel/hostname');
50 assert.rejects(readFile(fn, { signal }), {
59 assert.rejects(readFile(fn, { signal }), {
70 await readFile(fn, { signal: 'hello' }, callback);
Dtest-fs-promises-file-handle-readFile.js12 readFile,
33 const readFileData = await fileHandle.readFile();
51 const hostname = await fileHandle.readFile();
65 await assert.rejects(readFile(fileHandle, { signal }), {
80 await assert.rejects(readFile(fileHandle, { signal }), {
97 await assert.rejects(fileHandle.readFile({ signal, encoding: 'utf8' }), {
115 await assert.rejects(fileHandle.readFile(), {
Dtest-fs-append-file.js49 fs.readFile(filename, common.mustSucceed((buffer) => {
60 .then(common.mustCall(() => fs.promises.readFile(filename)))
73 fs.readFile(filename, common.mustSucceed((buffer) => {
86 .then(common.mustCall(() => fs.promises.readFile(filename)))
102 fs.readFile(filename, common.mustSucceed((buffer) => {
116 .then(common.mustCall(() => fs.promises.readFile(filename)))
163 fs.readFile(filename, common.mustSucceed((buffer) => {
184 .then(common.mustCall(() => fs.promises.readFile(filename)))
Dtest-fs-readfile-flags.js16 fs.readFile(
23 fs.readFile(
34 fs.readFile(
45 fs.readFile(
Dtest-worker-message-port-transfer-filehandle.js29 assert.deepStrictEqual(await fh2.readFile(), await fs.readFile(__filename));
32 assert.rejects(() => fh.readFile(), { code: 'EBADF' });
79 const readPromise = fh.readFile();
87 assert.deepStrictEqual(await readPromise, await fs.readFile(__filename));
Dtest-fs-promises-readfile-empty.js10 fs.readFile(fn)
13 fs.readFile(fn, 'utf8')
16 fs.readFile(fn, { encoding: 'utf8' })
Dtest-fs-promises-file-handle-truncate.js6 const { open, readFile } = require('fs').promises;
19 assert.deepStrictEqual((await readFile(filename)).toString(), text);
22 assert.deepStrictEqual((await readFile(filename)).toString(), 'Hello');
Dtest-fs-readfile-empty.js32 fs.readFile(fn, common.mustCall((err, data) => {
36 fs.readFile(fn, 'utf8', common.mustCall((err, data) => {
40 fs.readFile(fn, { encoding: 'utf8' }, common.mustCall((err, data) => {
Dtest-fs-readfile.js50 fs.readFile(e.name, common.mustCall((err, buf) => {
61 fs.readFile(fileInfo[0].name, { signal }, common.mustCall((err, buf) => {
69 fs.readFile(fileInfo[0].name, { signal }, common.mustCall((err, buf) => {
79 fs.readFile(fileInfo[0].name, { signal: 'hello' }, callback);
Dtest-fs-write-file.js43 fs.readFile(filename, common.mustSucceed((buffer) => {
53 fs.readFile(filename2, common.mustSucceed((buffer) => {
64 fs.readFile(filename4, common.mustSucceed((buffer) => {
/third_party/musl/libc-test/src/functionalext/supplement/stdio/
Dvfscanf.c21 int readFile(FILE *stream, char *fmt, ...) in readFile() function
53 int result = readFile(fp, "%s %d", buffer, &val); in vfscanf_0100()
90 int result = readFile(fp, "%s %s", buffer, val); in vfscanf_0200()
127 int result = readFile(fp, "%d %d", val1, val2); in vfscanf_0300()
Dvfwprintf.c33 int readFile(FILE *stream, wchar_t *fmt, ...) in readFile() function
52 int resule = readFile(file, value, L"world"); in vfwprintf_0100()
69 int resule = readFile(NULL, value, L"world"); in vfwprintf_0200()
Dvdprintf.c22 int readFile(int stream, char *fmt, ...) in readFile() function
45 int result = readFile(fp, "%s", value); in vdprintf_0100()
69 int result = readFile(fp, "%s", value); in vdprintf_0200()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/wasm/
Dtest.js18 const readFile = util.promisify(fs.readFile); constant
26 const buffer = await readFile(SPV_PATH);
/third_party/skia/third_party/externals/spirv-tools/test/wasm/
Dtest.js18 const readFile = util.promisify(fs.readFile); constant
26 const buffer = await readFile(SPV_PATH);
/third_party/typescript/src/services/
Dsourcemaps.ts17 readFile?(path: string, encoding?: string): string | undefined; method
43 else if (host.readFile) {
49 f => !host.fileExists || host.fileExists(f) ? host.readFile!(f) : undefined
105 if (!host.readFile || host.fileExists && !host.fileExists(path)) {
111 const text = host.readFile(path);
/third_party/flutter/engine/flutter/testing/dart/
Dimage_resize_test.dart15 final Uint8List bytes = await readFile('4x4.png');
25 final Uint8List bytes = await readFile('4x4.png');
35 final Uint8List bytes = await readFile('4x4.png');
45 final Uint8List bytes = await readFile('4x4.png');
55 final Uint8List bytes = await readFile('4x4.png');
124 Future<Uint8List> readFile(String fileName) async {
/third_party/typescript/src/testRunner/
DrwcRunner.ts54 …yback.IoLog = Playback.newStyleLogIntoOldStyleLog(JSON.parse(Harness.IO.readFile(`internal/cases/r…
58 … opts = ts.parseCommandLine(ioLog.arguments, fileName => Harness.IO.readFile(fileName));
77 readFile: Harness.IO.readFile
138 content = Harness.IO.readFile(unitName)!;
141 content = Harness.IO.readFile(fileName)!;
/third_party/typescript/scripts/
DerrorCheck.ts5 fs.readFile("src/compiler/diagnosticMessages.json", "utf-8", (err, data) => {
25 fs.readFile(baseDir + f, "utf-8", (err, baseline) => {
53 fs.readFile("src/compiler/diagnosticInformationMap.generated.ts", "utf-8", (err, data) => {

12345678910>>...13