@@ -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", () => {
25525775.000,0.700000000000,3,3.33
25625875.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
0 commit comments