forked from microsoft/monodex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonodex__engine__partitioner__tests__jsonfile_summary.snap
More file actions
93 lines (80 loc) · 2.03 KB
/
Copy pathmonodex__engine__partitioner__tests__jsonfile_summary.snap
File metadata and controls
93 lines (80 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
source: src/engine/partitioner/tests.rs
expression: summary
---
=== QUALITY SCORE ===
Score: 94.6%
Total chunks: 6
Small chunks (<500 chars): 0
Chars: 3051-4046 (mean 3453)
=== CHUNK 1 ===
Breadcrumb: %40rushstack/node-core-library:JsonFile.ts
Type: code
Kind: content
Symbol: None
Lines: 1-101
Size: 4088 chars
Text preview (5 lines):
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import * as os from 'node:os';
=== CHUNK 2 ===
Breadcrumb: %40rushstack/node-core-library:JsonFile.ts
Type: code
Kind: content
Symbol: None
Lines: 102-200
Size: 3557 chars
Text preview (5 lines):
/**
* Options for {@link JsonFile.parseString}, {@link JsonFile.load}, and {@link JsonFile.loadAsync}.
*
* @public
=== CHUNK 3 ===
Breadcrumb: %40rushstack/node-core-library:JsonFile.ts
Type: code
Kind: content
Symbol: None
Lines: 201-305
Size: 3247 chars
Text preview (5 lines):
/**
* Utilities for reading/writing JSON files.
* @public
*/
=== CHUNK 4 ===
Breadcrumb: %40rushstack/node-core-library:JsonFile.ts:JsonFile
Type: class
Kind: content
Symbol: Some("JsonFile")
Lines: 306-395
Size: 3102 chars
Text preview (5 lines):
/**
* An async version of {@link JsonFile.loadAndValidateWithCallback}.
*/
public static async loadAndValidateWithCallbackAsync(
=== CHUNK 5 ===
Breadcrumb: %40rushstack/node-core-library:JsonFile.ts:JsonFile
Type: class
Kind: content
Symbol: Some("JsonFile")
Lines: 396-507
Size: 3725 chars
Text preview (5 lines):
/**
* Saves the file to disk. Returns false if nothing was written due to options.onlyIfChanged.
* @param jsonObject - the object to be saved
* @param jsonFilename - the file path to write
=== CHUNK 6 ===
Breadcrumb: %40rushstack/node-core-library:JsonFile.ts:JsonFile
Type: class
Kind: content
Symbol: Some("JsonFile")
Lines: 508-607
Size: 3277 chars
Text preview (5 lines):
/**
* Used to validate a data structure before writing. Reports an error if there
* are any undefined members.
*/