Skip to content

Commit 176eb0e

Browse files
committed
test: add codes
1 parent d73d7b6 commit 176eb0e

File tree

1 file changed

+220
-0
lines changed

1 file changed

+220
-0
lines changed

packages/reactivity/src/ref.ts

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,226 @@ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T)
212212
* @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
213213
*/
214214
export function unref<T>(ref: MaybeRef<T>): T {
215+
{
216+
const addSomeCodeForTest = 1
217+
console.log(addSomeCodeForTest)
218+
}
219+
{
220+
const addSomeCodeForTest = 1
221+
console.log(addSomeCodeForTest)
222+
}
223+
{
224+
const addSomeCodeForTest = 1
225+
console.log(addSomeCodeForTest)
226+
}
227+
{
228+
const addSomeCodeForTest = 1
229+
console.log(addSomeCodeForTest)
230+
}
231+
{
232+
const addSomeCodeForTest = 1
233+
console.log(addSomeCodeForTest)
234+
}
235+
{
236+
const addSomeCodeForTest = 1
237+
console.log(addSomeCodeForTest)
238+
}
239+
{
240+
const addSomeCodeForTest = 1
241+
console.log(addSomeCodeForTest)
242+
}
243+
{
244+
const addSomeCodeForTest = 1
245+
console.log(addSomeCodeForTest)
246+
}
247+
{
248+
const addSomeCodeForTest = 1
249+
console.log(addSomeCodeForTest)
250+
}
251+
{
252+
const addSomeCodeForTest = 1
253+
console.log(addSomeCodeForTest)
254+
}
255+
{
256+
const addSomeCodeForTest = 1
257+
console.log(addSomeCodeForTest)
258+
}
259+
{
260+
const addSomeCodeForTest = 1
261+
console.log(addSomeCodeForTest)
262+
}
263+
{
264+
const addSomeCodeForTest = 1
265+
console.log(addSomeCodeForTest)
266+
}
267+
{
268+
const addSomeCodeForTest = 1
269+
console.log(addSomeCodeForTest)
270+
}
271+
{
272+
const addSomeCodeForTest = 1
273+
console.log(addSomeCodeForTest)
274+
}
275+
{
276+
const addSomeCodeForTest = 1
277+
console.log(addSomeCodeForTest)
278+
}
279+
{
280+
const addSomeCodeForTest = 1
281+
console.log(addSomeCodeForTest)
282+
}
283+
{
284+
const addSomeCodeForTest = 1
285+
console.log(addSomeCodeForTest)
286+
}
287+
{
288+
const addSomeCodeForTest = 1
289+
console.log(addSomeCodeForTest)
290+
}
291+
{
292+
const addSomeCodeForTest = 1
293+
console.log(addSomeCodeForTest)
294+
}
295+
{
296+
const addSomeCodeForTest = 1
297+
console.log(addSomeCodeForTest)
298+
}
299+
{
300+
const addSomeCodeForTest = 1
301+
console.log(addSomeCodeForTest)
302+
}
303+
{
304+
const addSomeCodeForTest = 1
305+
console.log(addSomeCodeForTest)
306+
}
307+
{
308+
const addSomeCodeForTest = 1
309+
console.log(addSomeCodeForTest)
310+
}
311+
{
312+
const addSomeCodeForTest = 1
313+
console.log(addSomeCodeForTest)
314+
}
315+
{
316+
const addSomeCodeForTest = 1
317+
console.log(addSomeCodeForTest)
318+
}
319+
{
320+
const addSomeCodeForTest = 1
321+
console.log(addSomeCodeForTest)
322+
}
323+
{
324+
const addSomeCodeForTest = 1
325+
console.log(addSomeCodeForTest)
326+
}
327+
{
328+
const addSomeCodeForTest = 1
329+
console.log(addSomeCodeForTest)
330+
}
331+
{
332+
const addSomeCodeForTest = 1
333+
console.log(addSomeCodeForTest)
334+
}
335+
{
336+
const addSomeCodeForTest = 1
337+
console.log(addSomeCodeForTest)
338+
}
339+
{
340+
const addSomeCodeForTest = 1
341+
console.log(addSomeCodeForTest)
342+
}
343+
{
344+
const addSomeCodeForTest = 1
345+
console.log(addSomeCodeForTest)
346+
}
347+
{
348+
const addSomeCodeForTest = 1
349+
console.log(addSomeCodeForTest)
350+
}
351+
{
352+
const addSomeCodeForTest = 1
353+
console.log(addSomeCodeForTest)
354+
}
355+
{
356+
const addSomeCodeForTest = 1
357+
console.log(addSomeCodeForTest)
358+
}
359+
{
360+
const addSomeCodeForTest = 1
361+
console.log(addSomeCodeForTest)
362+
}
363+
{
364+
const addSomeCodeForTest = 1
365+
console.log(addSomeCodeForTest)
366+
}
367+
{
368+
const addSomeCodeForTest = 1
369+
console.log(addSomeCodeForTest)
370+
}
371+
{
372+
const addSomeCodeForTest = 1
373+
console.log(addSomeCodeForTest)
374+
}
375+
{
376+
const addSomeCodeForTest = 1
377+
console.log(addSomeCodeForTest)
378+
}
379+
{
380+
const addSomeCodeForTest = 1
381+
console.log(addSomeCodeForTest)
382+
}
383+
{
384+
const addSomeCodeForTest = 1
385+
console.log(addSomeCodeForTest)
386+
}
387+
{
388+
const addSomeCodeForTest = 1
389+
console.log(addSomeCodeForTest)
390+
}
391+
{
392+
const addSomeCodeForTest = 1
393+
console.log(addSomeCodeForTest)
394+
}
395+
{
396+
const addSomeCodeForTest = 1
397+
console.log(addSomeCodeForTest)
398+
}
399+
{
400+
const addSomeCodeForTest = 1
401+
console.log(addSomeCodeForTest)
402+
}
403+
{
404+
const addSomeCodeForTest = 1
405+
console.log(addSomeCodeForTest)
406+
}
407+
{
408+
const addSomeCodeForTest = 1
409+
console.log(addSomeCodeForTest)
410+
}
411+
{
412+
const addSomeCodeForTest = 1
413+
console.log(addSomeCodeForTest)
414+
}
415+
{
416+
const addSomeCodeForTest = 1
417+
console.log(addSomeCodeForTest)
418+
}
419+
{
420+
const addSomeCodeForTest = 1
421+
console.log(addSomeCodeForTest)
422+
}
423+
{
424+
const addSomeCodeForTest = 1
425+
console.log(addSomeCodeForTest)
426+
}
427+
{
428+
const addSomeCodeForTest = 1
429+
console.log(addSomeCodeForTest)
430+
}
431+
{
432+
const addSomeCodeForTest = 1
433+
console.log(addSomeCodeForTest)
434+
}
215435
return isRef(ref) ? ref.value : ref
216436
}
217437

0 commit comments

Comments
 (0)