git ssb

0+

cel-desktop / ssb-pkg



Tree: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44

Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / test / test-50-fs-runtime-layer / test-x3-index.js

12002 bytesRaw
1/* eslint-disable brace-style */
2/* eslint-disable no-path-concat */
3
4'use strict';
5
6var fs = require('fs');
7var path = require('path');
8var assert = require('assert');
9var theRequireContentA = './test-z-asset-A.css';
10var theRequireContentB = 'test-z-asset-B.css';
11
12function firstLowerCase (s) {
13 return s.slice(0, 1).toLowerCase() + s.slice(1);
14}
15
16function firstUpperCase (s) {
17 return s.slice(0, 1).toUpperCase() + s.slice(1);
18}
19
20// ///////////////////////////////////////////////////////////////////////////
21
22fs.exists(path.join(__dirname, theRequireContentA), function (e82, v82) {
23fs.exists(__dirname + path.sep + theRequireContentB, function (e83, v83) {
24fs.exists(__dirname + '/' + theRequireContentB, function (e84, v84) {
25fs.exists(firstLowerCase(path.join(__dirname, theRequireContentA)), function (e85, v85) {
26fs.exists(firstLowerCase(__dirname + path.sep + theRequireContentB), function (e86, v86) {
27fs.exists(firstLowerCase(__dirname + '/' + theRequireContentB), function (e87, v87) {
28fs.exists(firstUpperCase(path.join(__dirname, theRequireContentA)), function (e88, v88) {
29fs.exists(firstUpperCase(__dirname + path.sep + theRequireContentB), function (e89, v89) {
30fs.exists(firstUpperCase(__dirname + '/' + theRequireContentB), function (e90, v90) {
31//
32
33fs.exists(path.join(__dirname, theRequireContentA + '-no-such'), function (e91, v91) {
34fs.exists(__dirname + path.sep + theRequireContentB + '-no-such', function (e92, v92) {
35fs.exists(__dirname + '/' + theRequireContentB + '-no-such', function (e93, v93) {
36fs.exists(firstLowerCase(path.join(__dirname, theRequireContentA + '-no-such')), function (e94, v94) {
37fs.exists(firstLowerCase(__dirname + path.sep + theRequireContentB + '-no-such'), function (e95, v95) {
38fs.exists(firstLowerCase(__dirname + '/' + theRequireContentB + '-no-such'), function (e96, v96) {
39fs.exists(firstUpperCase(path.join(__dirname, theRequireContentA + '-no-such')), function (e97, v97) {
40fs.exists(firstUpperCase(__dirname + path.sep + theRequireContentB + '-no-such'), function (e98, v98) {
41fs.exists(firstUpperCase(__dirname + '/' + theRequireContentB + '-no-such'), function (e99, v99) {
42//
43
44fs.access(path.join(__dirname, theRequireContentA), function (e100, v100) {
45fs.access(__dirname + path.sep + theRequireContentB, function (e101, v101) {
46fs.access(__dirname + '/' + theRequireContentB, function (e102, v102) {
47fs.access(firstLowerCase(path.join(__dirname, theRequireContentA)), function (e103, v103) {
48fs.access(firstLowerCase(__dirname + path.sep + theRequireContentB), function (e104, v104) {
49fs.access(firstLowerCase(__dirname + '/' + theRequireContentB), function (e105, v105) {
50fs.access(firstUpperCase(path.join(__dirname, theRequireContentA)), function (e106, v106) {
51fs.access(firstUpperCase(__dirname + path.sep + theRequireContentB), function (e107, v107) {
52fs.access(firstUpperCase(__dirname + '/' + theRequireContentB), function (e108, v108) {
53//
54
55fs.access(path.join(__dirname, theRequireContentA + '-no-such'), function (e109, v109) {
56fs.access(__dirname + path.sep + theRequireContentB + '-no-such', function (e110, v110) {
57fs.access(__dirname + '/' + theRequireContentB + '-no-such', function (e111, v111) {
58fs.access(firstLowerCase(path.join(__dirname, theRequireContentA + '-no-such')), function (e112, v112) {
59fs.access(firstLowerCase(__dirname + path.sep + theRequireContentB + '-no-such'), function (e113, v113) {
60fs.access(firstLowerCase(__dirname + '/' + theRequireContentB + '-no-such'), function (e114, v114) {
61fs.access(firstUpperCase(path.join(__dirname, theRequireContentA + '-no-such')), function (e115, v115) {
62fs.access(firstUpperCase(__dirname + path.sep + theRequireContentB + '-no-such'), function (e116, v116) {
63fs.access(firstUpperCase(__dirname + '/' + theRequireContentB + '-no-such'), function (e117, v117) {
64//
65
66fs.stat(path.join(__dirname, theRequireContentA), function (e118, v118) {
67fs.stat(__dirname + path.sep + theRequireContentB, function (e119, v119) {
68fs.stat(__dirname + '/' + theRequireContentB, function (e120, v120) {
69fs.stat(firstLowerCase(path.join(__dirname, theRequireContentA)), function (e121, v121) {
70fs.stat(firstLowerCase(__dirname + path.sep + theRequireContentB), function (e122, v122) {
71fs.stat(firstLowerCase(__dirname + '/' + theRequireContentB), function (e123, v123) {
72fs.stat(firstUpperCase(path.join(__dirname, theRequireContentA)), function (e124, v124) {
73fs.stat(firstUpperCase(__dirname + path.sep + theRequireContentB), function (e125, v125) {
74fs.stat(firstUpperCase(__dirname + '/' + theRequireContentB), function (e126, v126) {
75//
76
77fs.lstat(path.join(__dirname, theRequireContentA), function (e127, v127) {
78fs.lstat(__dirname + path.sep + theRequireContentB, function (e128, v128) {
79fs.lstat(__dirname + '/' + theRequireContentB, function (e129, v129) {
80fs.lstat(firstLowerCase(path.join(__dirname, theRequireContentA)), function (e130, v130) {
81fs.lstat(firstLowerCase(__dirname + path.sep + theRequireContentB), function (e131, v131) {
82fs.lstat(firstLowerCase(__dirname + '/' + theRequireContentB), function (e132, v132) {
83fs.lstat(firstUpperCase(path.join(__dirname, theRequireContentA)), function (e133, v133) {
84fs.lstat(firstUpperCase(__dirname + path.sep + theRequireContentB), function (e134, v134) {
85fs.lstat(firstUpperCase(__dirname + '/' + theRequireContentB), function (e135, v135) {
86//
87
88fs.realpath(path.join(__dirname, theRequireContentA), function (e145, v145) {
89fs.realpath(__dirname + path.sep + theRequireContentB, function (e146, v146) {
90fs.realpath(__dirname + '/' + theRequireContentB, function (e147, v147) {
91fs.realpath(firstLowerCase(path.join(__dirname, theRequireContentA)), function (e148, v148) {
92fs.realpath(firstLowerCase(__dirname + path.sep + theRequireContentB), function (e149, v149) {
93fs.realpath(firstLowerCase(__dirname + '/' + theRequireContentB), function (e150, v150) {
94fs.realpath(firstUpperCase(path.join(__dirname, theRequireContentA)), function (e151, v151) {
95fs.realpath(firstUpperCase(__dirname + path.sep + theRequireContentB), function (e152, v152) {
96fs.realpath(firstUpperCase(__dirname + '/' + theRequireContentB), function (e153, v153) {
97 console.log([
98
99 '******************************************************',
100 '******************************************************',
101 '******************************************************',
102
103 'exists', assert(v82 === undefined),
104 e82, v82 === undefined,
105 e83, v83 === undefined,
106 e84, v84 === undefined,
107 e85, v85 === undefined,
108 e86, v86 === undefined,
109 e87, v87 === undefined,
110 e88, v88 === undefined,
111 e89, v89 === undefined,
112 e90, v90 === undefined,
113
114 '******************************************************',
115 '******************************************************',
116 '******************************************************',
117
118 'exists-no-such', assert(v91 === undefined),
119 e91, v91 === undefined,
120 e92, v92 === undefined,
121 e93, v93 === undefined,
122 e94, v94 === undefined,
123 e95, v95 === undefined,
124 e96, v96 === undefined,
125 e97, v97 === undefined,
126 e98, v98 === undefined,
127 e99, v99 === undefined,
128
129 '******************************************************',
130 '******************************************************',
131 '******************************************************',
132
133 'access', assert(v100 === undefined || v100 === 0),
134 e100 === null, v100 === undefined || v100 === 0, // odd behaviour in 0.12.14
135 e101 === null, v101 === undefined || v101 === 0, // callback args are (null, 0). wtf 0?
136 e102 === null, v102 === undefined || v102 === 0,
137 e103 === null, v103 === undefined || v103 === 0,
138 e104 === null, v104 === undefined || v104 === 0,
139 e105 === null, v105 === undefined || v105 === 0,
140 e106 === null, v106 === undefined || v106 === 0,
141 e107 === null, v107 === undefined || v107 === 0,
142 e108 === null, v108 === undefined || v108 === 0,
143
144 '******************************************************',
145 '******************************************************',
146 '******************************************************',
147
148 'access-no-such', assert(v109 === undefined),
149 e109.errno, e109.code, v109 === undefined,
150 e110.errno, e110.code, v110 === undefined,
151 e111.errno, e111.code, v111 === undefined,
152 e112.errno, e112.code, v112 === undefined,
153 e113.errno, e113.code, v113 === undefined,
154 e114.errno, e114.code, v114 === undefined,
155 e115.errno, e115.code, v115 === undefined,
156 e116.errno, e116.code, v116 === undefined,
157 e117.errno, e117.code, v117 === undefined,
158
159 '******************************************************',
160 '******************************************************',
161 '******************************************************',
162
163 'stat', assert(e118 === null),
164 e118 === null, v118.mode, v118.birthtime.getYear(), v118.isFile(), v118.isDirectory(),
165 e119 === null, v119.mode, v119.birthtime.getYear(), v119.isFile(), v119.isDirectory(),
166 e120 === null, v120.mode, v120.birthtime.getYear(), v120.isFile(), v120.isDirectory(),
167 e121 === null, v121.mode, v121.birthtime.getYear(), v121.isFile(), v121.isDirectory(),
168 e122 === null, v122.mode, v122.birthtime.getYear(), v122.isFile(), v122.isDirectory(),
169 e123 === null, v123.mode, v123.birthtime.getYear(), v123.isFile(), v123.isDirectory(),
170 e124 === null, v124.mode, v124.birthtime.getYear(), v124.isFile(), v124.isDirectory(),
171 e125 === null, v125.mode, v125.birthtime.getYear(), v125.isFile(), v125.isDirectory(),
172 e126 === null, v126.mode, v126.birthtime.getYear(), v126.isFile(), v126.isDirectory(),
173
174 '******************************************************',
175 '******************************************************',
176 '******************************************************',
177
178 'lstat', assert(e127 === null),
179 e127 === null, v127.mode, v127.birthtime.getYear(), v127.isFile(), v127.isDirectory(),
180 e128 === null, v128.mode, v128.birthtime.getYear(), v128.isFile(), v128.isDirectory(),
181 e129 === null, v129.mode, v129.birthtime.getYear(), v129.isFile(), v129.isDirectory(),
182 e130 === null, v130.mode, v130.birthtime.getYear(), v130.isFile(), v130.isDirectory(),
183 e131 === null, v131.mode, v131.birthtime.getYear(), v131.isFile(), v131.isDirectory(),
184 e132 === null, v132.mode, v132.birthtime.getYear(), v132.isFile(), v132.isDirectory(),
185 e133 === null, v133.mode, v133.birthtime.getYear(), v133.isFile(), v133.isDirectory(),
186 e134 === null, v134.mode, v134.birthtime.getYear(), v134.isFile(), v134.isDirectory(),
187 e135 === null, v135.mode, v135.birthtime.getYear(), v135.isFile(), v135.isDirectory(),
188
189 '******************************************************',
190 '******************************************************',
191 '******************************************************',
192
193 'realpath', assert(e145 === null),
194 e145 === null, path.basename(v145), path.basename(path.dirname(v145)),
195 e146 === null, path.basename(v146), path.basename(path.dirname(v146)),
196 e147 === null, path.basename(v147), path.basename(path.dirname(v147)),
197 e148 === null, path.basename(v148), path.basename(path.dirname(v148)),
198 e149 === null, path.basename(v149), path.basename(path.dirname(v149)),
199 e150 === null, path.basename(v150), path.basename(path.dirname(v150)),
200 e151 === null, path.basename(v151), path.basename(path.dirname(v151)),
201 e152 === null, path.basename(v152), path.basename(path.dirname(v152)),
202 e153 === null, path.basename(v153), path.basename(path.dirname(v153)),
203
204 '******************************************************',
205 '******************************************************',
206 '******************************************************'
207
208 ].join('\n'));
209}); }); }); }); }); }); }); }); });
210}); }); }); }); }); }); }); }); });
211}); }); }); }); }); }); }); }); });
212}); }); }); }); }); }); }); }); });
213}); }); }); }); }); }); }); }); });
214}); }); }); }); }); }); }); }); });
215}); }); }); }); }); }); }); }); });
216

Built with git-ssb-web