• Home
  • Raw
  • Download

Lines Matching full:path

20 import path from 'path';
27 let path = '/user/local/tester'; variable
28 assert.strictEqual(FileUtils.readFile(path), undefined);
32 let path = 'test/ut/utils/demo.txt'; variable
33 assert.strictEqual(FileUtils.readFile(path), 'hello world!');
38 let path = 'test/ut/utils/demo.json'; variable
39 let obj = FileUtils.readFileAsJson(path);
44 let path = 'test/utils/demo_not_found.json'; variable
45 let obj = FileUtils.readFileAsJson(path);
50 let path = 'test/utils/error_json.txt'; variable
51 let obj = FileUtils.readFileAsJson(path);
57 let path = null; variable
58 assert.strictEqual(FileUtils.getFileName(path), undefined);
60 path = undefined;
61 assert.strictEqual(FileUtils.getFileName(path), undefined);
65 let path = 'resources/configs/user_profile.json'; variable
66 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
70 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5\\user_profile.json'; variable
71 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
75 let path = 'user_profile.json'; variable
76 assert.strictEqual(FileUtils.getFileName(path), 'user_profile.json');
81 let path = null; variable
82 assert.strictEqual(FileUtils.getFileExtension(path), undefined);
84 path = undefined;
85 assert.strictEqual(FileUtils.getFileExtension(path), undefined);
89 let path = 'resources/configs/user_profile'; variable
90 assert.strictEqual(FileUtils.getFileExtension(path), undefined);
94 let path = 'resources/configs.dir/user_profile.conf'; variable
95 assert.strictEqual(FileUtils.getFileExtension(path), 'conf');
99 let path = 'resources/configs/user_profile.json'; variable
100 assert.strictEqual(FileUtils.getFileExtension(path), 'json');
104 let path = 'resources/configs/user_profile.'; variable
105 assert.strictEqual(FileUtils.getFileExtension(path), '');
110 let path = 'test/ut/utils/write_demo.txt'; variable
112 FileUtils.writeFile(path, content);
114 const fileContent = FileUtils.readFile(path);
120 let path = 'test/utils/write_demo.txt'; variable
123 assert.strictEqual(FileUtils.getPrefix(path), prefix);
127 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5\\us'; variable
130 assert.strictEqual(FileUtils.getPrefix(path), prefix);
134 let path = 'D:'; variable
137 assert.strictEqual(FileUtils.getPrefix(path), prefix);
141 …it('Tester: <get path without prefix no prefix test.> case for FileUtils#getPathWithoutPrefix', fu…
142 let path = 'D:'; variable
145 assert.strictEqual(FileUtils.getPathWithoutPrefix(path, prefix), path);
148 …it('Tester: <get path without prefix contain prefix test.> case for FileUtils#getPathWithoutPrefix…
149 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5'; variable
152 assert.strictEqual(FileUtils.getPathWithoutPrefix(path, prefix), '\\ohsdk\\ets\\3.2.7.5');
155 …it('Tester: <get path without prefix path and prefix equal test.> case for FileUtils#getPathWithou…
156 let path = 'D:\\HuaweiApp\\ohsdk\\ets\\3.2.7.5'; variable
159 assert.strictEqual(FileUtils.getPathWithoutPrefix(path, prefix), '');
211 let testPath: string =path.join(__dirname,'testData/test1/deleteFolderRecursive');