Skip to content

Commit 7c20f8e

Browse files
author
alexvictor
committed
chore: fix prettier
1 parent d29299d commit 7c20f8e

File tree

8 files changed

+87
-25
lines changed

8 files changed

+87
-25
lines changed

src/AbstractHistogram.spec.ts

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ describe("Histogram computing statistics", () => {
231231
#[Max = 75.000, Total count = 3]
232232
#[Buckets = 43, SubBuckets = 2048]
233233
`;
234-
expect(histogram.outputPercentileDistribution()).to.be.equal(expectedResult);
234+
expect(histogram.outputPercentileDistribution()).to.be.equal(
235+
expectedResult
236+
);
235237
});
236238

237239
it("should compute percentile distribution in csv format", () => {
@@ -255,7 +257,9 @@ describe("Histogram computing statistics", () => {
255257
75.000,0.700000000000,3,3.33
256258
75.000,1.000000000000,3,Infinity
257259
`;
258-
expect(histogram.outputPercentileDistribution(undefined, undefined, true)).to.be.equal(expectedResult);
260+
expect(
261+
histogram.outputPercentileDistribution(undefined, undefined, true)
262+
).to.be.equal(expectedResult);
259263
});
260264
});
261265

@@ -279,7 +283,9 @@ describe("Histogram correcting coordinated omissions", () => {
279283
histogram.recordValue(207);
280284
histogram.recordValue(207);
281285
// when
282-
const correctedHistogram = histogram.copyCorrectedForCoordinatedOmission(100);
286+
const correctedHistogram = histogram.copyCorrectedForCoordinatedOmission(
287+
100
288+
);
283289
// then
284290
expect(correctedHistogram.totalCount).to.be.equal(4);
285291
expect(correctedHistogram.minNonZeroValue).to.be.equal(107);
@@ -309,17 +315,31 @@ describe("Histogram encoding", () => {
309315
const encodedSize = histogram.encodeIntoByteBuffer(buffer);
310316
buffer.position = 0;
311317
// when
312-
const result = AbstractHistogram.decodeFromByteBuffer(buffer, Int32Histogram, 0);
318+
const result = AbstractHistogram.decodeFromByteBuffer(
319+
buffer,
320+
Int32Histogram,
321+
0
322+
);
313323
// then
314-
expect(result.outputPercentileDistribution()).to.be.equal(histogram.outputPercentileDistribution());
324+
expect(result.outputPercentileDistribution()).to.be.equal(
325+
histogram.outputPercentileDistribution()
326+
);
315327
});
316328

317329
it("should decode and decompress reading a byte buffer", () => {
318330
// given
319331
const base64 = require("base64-js");
320-
const buffer = new ByteBuffer(base64.toByteArray("HISTFAAAACB42pNpmSzMwMDAxAABMJqRQf4/GNh/gAgEMwEAkp4I6Q=="));
332+
const buffer = new ByteBuffer(
333+
base64.toByteArray(
334+
"HISTFAAAACB42pNpmSzMwMDAxAABMJqRQf4/GNh/gAgEMwEAkp4I6Q=="
335+
)
336+
);
321337
// when
322-
const histogram = AbstractHistogram.decodeFromCompressedByteBuffer(buffer, Int32Histogram, 0);
338+
const histogram = AbstractHistogram.decodeFromCompressedByteBuffer(
339+
buffer,
340+
Int32Histogram,
341+
0
342+
);
323343
// then
324344
expect(histogram.getMean()).to.be.equal(42);
325345
expect(histogram.getTotalCount()).to.be.equal(1);
@@ -336,8 +356,14 @@ describe("Histogram encoding", () => {
336356
histogram.encodeIntoCompressedByteBuffer(buffer);
337357
// then
338358
buffer.resetPosition();
339-
const decodedHistogram = AbstractHistogram.decodeFromCompressedByteBuffer(buffer, Int32Histogram, 0);
340-
expect(decodedHistogram.outputPercentileDistribution()).to.be.equal(histogram.outputPercentileDistribution());
359+
const decodedHistogram = AbstractHistogram.decodeFromCompressedByteBuffer(
360+
buffer,
361+
Int32Histogram,
362+
0
363+
);
364+
expect(decodedHistogram.outputPercentileDistribution()).to.be.equal(
365+
histogram.outputPercentileDistribution()
366+
);
341367
});
342368
});
343369

src/Float64Histogram.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ describe("Float64 histogram", () => {
3434
// when
3535
const percentileValue = histogram.getValueAtPercentile(99.9);
3636
// then
37-
expect(percentileValue).satisfies((result: number) => Math.abs(result - 123456) < 1000);
37+
expect(percentileValue).satisfies(
38+
(result: number) => Math.abs(result - 123456) < 1000
39+
);
3840
});
3941

4042
it("should add to count big numbers", () => {

src/HistogramLogReader.spec.ts

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,22 @@ describe("Histogram Log Reader", () => {
1818
let fileContentWithBaseTime: string;
1919
let fileContentWithoutHeader: string;
2020
before(() => {
21-
fileContent = fs.readFileSync("test_files/jHiccup-2.0.7S.logV2.hlog", "UTF-8");
22-
fileContentWithBaseTime = fs.readFileSync("test_files/jHiccup-with-basetime-2.0.7S.logV2.hlog", "UTF-8");
23-
fileContentWithoutHeader = fs.readFileSync("test_files/jHiccup-no-header-2.0.7S.logV2.hlog", "UTF-8");
24-
tagFileContent = fs.readFileSync("test_files/tagged-Log.logV2.hlog", "UTF-8");
21+
fileContent = fs.readFileSync(
22+
"test_files/jHiccup-2.0.7S.logV2.hlog",
23+
"UTF-8"
24+
);
25+
fileContentWithBaseTime = fs.readFileSync(
26+
"test_files/jHiccup-with-basetime-2.0.7S.logV2.hlog",
27+
"UTF-8"
28+
);
29+
fileContentWithoutHeader = fs.readFileSync(
30+
"test_files/jHiccup-no-header-2.0.7S.logV2.hlog",
31+
"UTF-8"
32+
);
33+
tagFileContent = fs.readFileSync(
34+
"test_files/tagged-Log.logV2.hlog",
35+
"UTF-8"
36+
);
2537
});
2638

2739
it("should update startTimeSec reading first histogram", () => {
@@ -41,7 +53,9 @@ describe("Histogram Log Reader", () => {
4153
// then
4254
checkNotNull(histogram);
4355
// if mean is good, strong probability everything else is good as well
44-
expect(floor((histogram as AbstractHistogram).getMean())).to.be.equal(301998);
56+
expect(floor((histogram as AbstractHistogram).getMean())).to.be.equal(
57+
301998
58+
);
4559
});
4660

4761
it("should return null if no histogram in the logs", () => {
@@ -162,7 +176,11 @@ describe("Histogram Log Reader", () => {
162176
it("should do the whole 9 yards just like the original Java version :-)", () => {
163177
// given
164178
const reader = new HistogramLogReader(fileContent);
165-
const accumulatedHistogram = new Int32Histogram(1, Number.MAX_SAFE_INTEGER, 3);
179+
const accumulatedHistogram = new Int32Histogram(
180+
1,
181+
Number.MAX_SAFE_INTEGER,
182+
3
183+
);
166184
let histogram: AbstractHistogram | null;
167185
let histogramCount = 0;
168186
let totalCount = 0;
@@ -177,7 +195,9 @@ describe("Histogram Log Reader", () => {
177195
// then
178196
expect(histogramCount).to.be.equal(62);
179197
expect(totalCount).to.be.equal(48761);
180-
expect(accumulatedHistogram.getValueAtPercentile(99.9)).to.be.equal(1745879039);
198+
expect(accumulatedHistogram.getValueAtPercentile(99.9)).to.be.equal(
199+
1745879039
200+
);
181201
expect(reader.startTimeSec).to.be.equal(1441812279.474);
182202
});
183203

src/Int16Histogram.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ describe("Int16 histogram", () => {
3434
// when
3535
const percentileValue = histogram.getValueAtPercentile(99.9);
3636
// then
37-
expect(percentileValue).satisfies((result: number) => Math.abs(result - 123456) < 1000);
37+
expect(percentileValue).satisfies(
38+
(result: number) => Math.abs(result - 123456) < 1000
39+
);
3840
});
3941
});

src/Int32Histogram.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ describe("Int32 histogram", () => {
3434
// when
3535
const percentileValue = histogram.getValueAtPercentile(99.9);
3636
// then
37-
expect(percentileValue).satisfies((result: number) => Math.abs(result - 123456) < 1000);
37+
expect(percentileValue).satisfies(
38+
(result: number) => Math.abs(result - 123456) < 1000
39+
);
3840
// TODO the value is 123519 > max, ask Gil if it is a bug
3941
});
4042

@@ -48,7 +50,9 @@ describe("Int32 histogram", () => {
4850
histogram.recordValue(420000);
4951
// then
5052
const medianValue = histogram.getValueAtPercentile(50);
51-
expect(medianValue).satisfies((result: number) => Math.abs(result - 127000) < 1000);
53+
expect(medianValue).satisfies(
54+
(result: number) => Math.abs(result - 127000) < 1000
55+
);
5256
});
5357

5458
it("should compute proper value at percentile even with rounding issues", () => {

src/Int8Histogram.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ describe("Int8 histogram", () => {
3434
// when
3535
const percentileValue = histogram.getValueAtPercentile(99.9);
3636
// then
37-
expect(percentileValue).satisfies((result: number) => Math.abs(result - 123456) < 1000);
37+
expect(percentileValue).satisfies(
38+
(result: number) => Math.abs(result - 123456) < 1000
39+
);
3840
});
3941
});

src/encoding.spec.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ describe("Histogram encoding", () => {
2222

2323
it("should decode and decompress a big base64 string", () => {
2424
// given
25-
const base64String = "HISTFAAACGB42j1WQY4cuRGks7KzWWwOh1NTGo1GEmzBWCx0EAxjsdiTsdiTD4ZPfoa/4R/4o/7BOiKSrWnNVBWLzIyMiMzWp//897mUA7/62db1D/n3999//V8umBW74POTPds7+4In2/xq722zv9huj/bRbvZH+2oPdrV3vtu//AOeP9if8Ra7H7DlhlcPePyo+w1xrrh+84uZFzd7QkyEL/ZXJPgN295jC5bsii0FN084/BXXDQH+jqPMlhn5eYf1D/beb9h7BdSfseMJGG5C94h3BRFveibyZ9x9wR1KeaebR0P8J/vVfsCbHevv7DOxPxt2/1MrLOQz3j8BH2DjhOHpA/ZfEILRWaD9bZHyb7z60X6xRxByMzxsQEJsCPlNoP/BFI849WQP/iy+cHJHqG+4veIAWcf+DQ9Y51MRBRueHlRqEbOPXqQR74Ec28Dab9pseLpqI7na/bPCPuBz0xskIIAvUqVIpQdTcr7/Afje68RHpPwsBrXnUYE3UVy0AYubljZTggshU+gdlTHej6iyJEfXuOb+B51wcXdbzD/yaFkQNn+fXnHBY7In5Sgi4wb34IYciy83hbxSG/pJFipa+VnByeJXFMPD0pQMoUTc+i3BExV+bgKa98WYHqk2GnaH+bPg3Xl8X9AEZpcI4qCsDx/9kpfMWJyG3Xz3PQGWDI88N2myqfh1c9H10XQT4qoI1E19uC87cKMLtS2byDWs3u6Qnlyet7gqYvHtTnWaKXndXBZ6oo2IGJTnywxyuT/tstx+p2ZTBQKQql6F67ogJCWXxO4cIrhcJfwui1ouMTInwc1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GrRIRq0IxTUZtloyDI9aP8kagP6fmk/us9HEos4YEzrEOCk1BWBtkYk6OXKObwHgMfN81sVnpdliHDPKLDnoWGRJGiK4xPzhjKruu9UYpQYh6ASv0lbe0DOdX6ayAmNEkyFoLv7JoQH6o/+CDoS3xt5wqjSpJhHjtjZr1OCA+Ys5ZDzYx/DL6iI4eG8dr6bOPA7hnbccc53gbPNJHqzgx5zE6/ImJQKMN3OFYe5mQ9qxv/RyvzY854QpIM/AX2/w8xoluoETnnONtvowxZjuPjiLbS61vwydCAu4x2tlfz47U3A75zonNmEHgZbzM3pAIaNuJQYbFMY8GaMjjAyv1PNtLf208c87XPlBEsLVeZ5/HGfWIAwyjodoJwmYMR6HH2SfcVnGnsYbTfPiENP316K8Dr8+K4hpIgdlHBUdgox3jBSk6K0YP9qMBzZzRX0CQgwTYPXBw1IHCQDLeI1kDG/0E0nqOA5+O8EA+XhFytKO1E5MJlZ4dvNY5zzpeHFkhH9K8sS/npFjIZZ8aM4e/NGjUx/BjvCHA0QnkBTHwFqGO2Y+jw24T0rNF/oT3/Zx06P8BChhtKw==";
2627
// when
2728
const histogram = hdr.decodeFromCompressedBase64(base64String);
2829
// then
@@ -36,12 +37,15 @@ describe("Histogram encoding", () => {
3637
// when
3738
const base64Histogram = hdr.encodeIntoBase64String(histogram);
3839
// then
39-
expect(base64Histogram).to.be.equal("HISTFAAAAB94nJNpmSzMwMDABMSMQMzMAAGMUJoJxg9mAgA1TQGm");
40+
expect(base64Histogram).to.be.equal(
41+
"HISTFAAAAB94nJNpmSzMwMDABMSMQMzMAAGMUJoJxg9mAgA1TQGm"
42+
);
4043
});
4144

4245
it("should throw an error when trying to decompress an histogram using V1 encoding", () => {
4346
// given
44-
const base64V1EncodingString = "HISTIgAAAFd42pNpmazIwMAYxgABTBDKT4GBgdnNYMcCBvsPUBkeBkYGZqA8MwMbAzsDC5DFBCTZgJCDQY1BjkGLQZRBlUEPCB8zWDCYMxgDZZkZhgJgHDibAY8JB/A=";
47+
const base64V1EncodingString =
48+
"HISTIgAAAFd42pNpmazIwMAYxgABTBDKT4GBgdnNYMcCBvsPUBkeBkYGZqA8MwMbAzsDC5DFBCTZgJCDQY1BjkGLQZRBlUEPCB8zWDCYMxgDZZkZhgJgHDibAY8JB/A=";
4549
// when & then
4650
expect(() =>
4751
hdr.decodeFromCompressedBase64(base64V1EncodingString)

src/index.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ describe("Histogram builder", () => {
3434
expectedHistogram.recordValue(12345678);
3535

3636
// then
37-
expect(histogram.outputPercentileDistribution()).to.be.equal(expectedHistogram.outputPercentileDistribution());
37+
expect(histogram.outputPercentileDistribution()).to.be.equal(
38+
expectedHistogram.outputPercentileDistribution()
39+
);
3840
});
3941
});

0 commit comments

Comments
 (0)