Lines Matching full:path
25 let path = '/user/local/tester'; variable
26 assert.strictEqual(FileUtils.readFile(path), undefined);
30 let path = 'test/ut/utils/demo.txt'; variable
31 assert.strictEqual(FileUtils.readFile(path), 'hello world!');
36 let path = 'test/ut/utils/demo.json'; variable
37 let obj = FileUtils.readFileAsJson(path);
42 let path = 'test/utils/demo_not_found.json'; variable
43 let obj = FileUtils.readFileAsJson(path);
48 let path = 'test/utils/error_json.txt'; variable
49 let obj = FileUtils.readFileAsJson(path);
55 let path = null; variable
56 assert.strictEqual(FileUtils.getFileName(path), undefined);
58 path = undefined;
59 assert.strictEqual(FileUtils.getFileName(path), undefined);
63 let path = 'resources/configs/user_profile.json'; variable
64 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
68 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5\\user_profile.json'; variable
69 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
73 let path = 'user_profile.json'; variable
74 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
79 let path = null; variable
80 assert.strictEqual(FileUtils.getFileExtension(path), undefined);
82 path = undefined;
83 assert.strictEqual(FileUtils.getFileExtension(path), undefined);
87 let path = 'resources/configs/user_profile'; variable
88 assert.strictEqual(FileUtils.getFileExtension(path), undefined);
92 let path = 'resources/configs.dir/user_profile.conf'; variable
93 assert.strictEqual(FileUtils.getFileExtension(path), 'conf');
97 let path = 'resources/configs/user_profile.json'; variable
98 assert.strictEqual(FileUtils.getFileExtension(path), 'json');
102 let path = 'resources/configs/user_profile.'; variable
103 assert.strictEqual(FileUtils.getFileExtension(path), '');
108 let path = 'test/ut/utils/write_demo.txt'; variable
110 FileUtils.writeFile(path, content);
112 const fileContent = FileUtils.readFile(path);
118 let path = 'test/utils/write_demo.txt'; variable
121 assert.strictEqual(FileUtils.getPrefix(path), prefix);
125 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5\\us'; variable
128 assert.strictEqual(FileUtils.getPrefix(path), prefix);
132 let path = 'D:'; variable
135 assert.strictEqual(FileUtils.getPrefix(path), prefix);
139 …it('Tester: <get path without prefix no prefix test.> case for FileUtils#getPathWithoutPrefix', fu…
140 let path = 'D:'; variable
143 assert.strictEqual(FileUtils.getPathWithoutPrefix(path, prefix), path);
146 …it('Tester: <get path without prefix contain prefix test.> case for FileUtils#getPathWithoutPrefix…
147 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5'; variable
150 assert.strictEqual(FileUtils.getPathWithoutPrefix(path, prefix), '\\ohsdk\\ets\\3.2.7.5');
153 …it('Tester: <get path without prefix path and prefix equal test.> case for FileUtils#getPathWithou…
154 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5'; variable
157 assert.strictEqual(FileUtils.getPathWithoutPrefix(path, prefix), '');