How to use doesFileExist method in sinon

Best JavaScript code snippet using sinon

profile-data.js

Source:profile-data.js Github

copy

Full Screen

1var profile =2[["doesFileExist ../../src/General/GetOpt.hs",0.0001,0,0]3,["../../src/Development/Ninja/All.hs",0.0003,0,0]4,["doesFileExist ../../src/System/IO/Error.hs",0.0001,0,0]5,["doesFileExist ../../src/Data/ByteString.hs",0.0001,0,0]6,["doesFileExist ../../src/Data/Unique.hs",0.0001,0,0]7,["doesFileExist ../../src/System/IO/Unsafe.hs",0.0001,0,0]8,["doesFileExist ../../src/Control/Monad/Trans/Maybe.hs",0.0002,0,0]9,["doesFileExist ../../src/Development/Shake/Internal/Progress.hs",0.0001,0,0]10,["doesFileExist ../../src/Data/Binary/Builder.hs",0.0002,0,0]11,["../../src/Development/Shake/Internal/Profile.hs",0.0003,0,0]12,["../../src/Development/Shake/Internal/Core/Types.hs",0.0003,0,0]13,["../../src/Development/Shake/Internal/FilePattern.hs",0.002,0,0]14,["doesFileExist ../../src/Foreign/Ptr.hs",0.0001,0,0]15,["doesFileExist ../../src/General/Ids.hs",0.0002,0,0]16,["doesFileExist ../../src/Paths.hs",0.0001,0,0]17,["doesFileExist ../../src/System/Process.hs",0.0001,0,0]18,["../../src/Development/Shake/Internal/History/Shared.hs",0.0005,0,0]19,["doesFileExist ../../src/Development/Ninja/Env.hs",0.0001,0,0]20,["doesFileExist ../../src/General/Process.hs",0.0001,0,0]21,["../../src/Development/Shake/FilePath.hs",0.0003,0,0]22,["../../src/Development/Shake/Internal/Core/Pool.hs",0.0002,0,0]23,["doesFileExist ../../src/System/FilePath.hs",0.0001,0,0]24,["doesFileExist ../../src/Control/Monad/Trans/Class.hs",0.0002,0,0]25,["doesFileExist ../../src/Development/Shake/Internal/Rules/OrderOnly.hs",0.0002,0,0]26,["../../src/General/ListBuilder.hs",0.0003,0,0]27,["../../src/Development/Shake/Internal/Core/Storage.hs",0.0002,0,0]28,["../../src/Development/Shake/Internal/Args.hs",0.0009,0,0]29,["doesFileExist ../../src/GHC/Exts.hs",0.0001,0,0]30,["../../src/Development/Shake/Classes.hs",0.0003,0,0]31,["doesFileExist ../../src/Data/Version.hs",0.0001,0,0]32,["doesFileExist ../../src/System/Exit.hs",0.0001,0,0]33,["../../src/General/Pool.hs",0.0002,0,0]34,["doesFileExist ../../src/System/Console/GetOpt.hs",0.0002,0,0]35,["doesFileExist ../../src/Data/Time.hs",0.0002,0,0]36,["doesFileExist ../../src/General/Cleanup.hs",0.0006,0,0]37,["doesFileExist ../../src/General/Makefile.hs",0.0001,0,0]38,["doesFileExist ../../src/Development/Shake/Internal/Args.hs",0.0001,0,0]39,["doesFileExist ../../src/Development/Shake/Internal/Core/Run.hs",0.0001,0,0]40,["doesFileExist ../../src/General/FileLock.hs",0.0001,0,0]41,["../../src/Development/Ninja/Parse.hs",0.0019,0,0]42,["../../src/Development/Shake/Internal/Core/Rules.hs",0.0011,0,0]43,["doesFileExist ../../src/Foreign/C/String.hs",0.0001,0,0]44,["doesFileExist ../../src/Data/ByteString/Lazy.hs",0.0001,0,0]45,["doesFileExist ../../src/Data/IORef.hs",0.0001,0,0]46,["doesFileExist ../../src/GHC/IO/Exception.hs",0.0001,0,0]47,["doesFileExist ../../src/Data/ByteString/Char8.hs",0.0001,0,0]48,["../../src/General/Fence.hs",0.0002,0,0]49,["doesFileExist ../../src/Development/Shake/Internal/Core/Action.hs",0.0002,0,0]50,["doesFileExist ../../src/Data/Hashable.hs",0.0002,0,0]51,["../../src/Development/Shake/Internal/History/Network.hs",0.0003,0,0]52,["doesFileExist ../../src/Development/Shake/Internal/Rules/Default.hs",0.0001,0,0]53,["doesFileExist ../../src/System/Info.hs",0.0001,0,0]54,["doesFileExist ../../src/Data/List.hs",0.0001,0,0]55,["../../src/Development/Shake/Internal/Derived.hs",0.0003,0,0]56,["doesFileExist ../../src/Control/Exception.hs",0.0001,0,0]57,["../../src/Development/Shake/Internal/Rules/File.hs",0.0003,0,0]58,["doesFileExist ../../src/Data/IORef/Extra.hs",0.0617,0,0]59,["doesFileExist ../../src/Development/Shake/Internal/Core/Build.hs",0.0001,0,0]60,["../../src/General/TypeMap.hs",0.0002,0,0]61,["doesFileExist ../../src/Data/Char.hs",0.0001,0,0]62,["doesFileExist ../../src/System/Posix/Files/ByteString.hs",0.0002,0,0]63,["doesFileExist ../../src/Data/Typeable.hs",0.0001,0,0]64,["doesFileExist ../../src/System/Random.hs",0.0001,0,0]65,["doesFileExist ../../src/Development/Shake/Command.hs",0.0002,0,0]66,["../../src/Development/Shake/Internal/History/Bloom.hs",0.0002,0,0]67,["doesFileExist ../../src/Development/Shake/Internal/Paths.hs",0.0002,0,0]68,["doesFileExist ../../src/Data/Bits.hs",0.0001,0,0]69,["../../src/Development/Shake/Internal/FileName.hs",0.0003,0,0]70,["doesFileExist ../../src/Development/Shake/Internal/CompactUI.hs",0.0001,0,0]71,["doesFileExist ../../src/Development/Shake/Internal/History/Shared.hs",0.0001,0,0]72,["../../src/Run.hs",0.0003,0,0]73,["../../src/Development/Shake/Internal/History/Cloud.hs",0.0003,0,0]74,["doesFileExist ../../src/Development/Ninja/Type.hs",0.0001,0,0]75,["doesFileExist ../../src/Development/Shake/Internal/Core/Pool.hs",0.0001,0,0]76,["doesFileExist ../../src/Prelude.hs",0.0001,0,0]77,["../../src/General/Bilist.hs",0.0003,0,0]78,["doesFileExist ../../src/Development/Shake/Internal/FileName.hs",0.0001,0,0]79,["../../src/General/Chunks.hs",0.0003,0,0]80,["doesFileExist ../../src/Data/Primitive/Array.hs",0.0001,0,0]81,["doesFileExist ../../src/Network/HTTP.hs",0.0001,0,0]82,["doesFileExist ../../src/Data/Data.hs",0.0001,0,0]83,["doesFileExist ../../src/Development/Shake/Internal/Demo.hs",0.0001,0,0]84,["../../src/General/Template.hs",0.0003,0,0]85,["doesFileExist ../../src/Development/Ninja/All.hs",0.0002,0,0]86,["../../src/Development/Shake/Internal/History/Types.hs",0.0002,0,0]87,["Development/Shake/Internal/History/Types.dep",0.0017,0,0,[[84],[3]]]88,["Development/Shake/Internal/History/Types.deps",0.0012,0,0,[[85]]]89,["doesFileExist ../../src/Data/HashMap/Strict.hs",0.0001,0,0]90,["doesFileExist ../../src/System/FilePath/Posix.hs",0.0001,0,0]91,["doesFileExist ../../src/Development/Shake/Internal/FilePattern.hs",0.0001,0,0]92,["doesFileExist ../../src/Network/URI.hs",0.0001,0,0]93,["../../src/General/FileLock.hs",0.0002,0,0]94,["../../src/Development/Shake/Internal/Rules/Directory.hs",0.0003,0,0]95,["doesFileExist ../../src/Development/Ninja/Lexer.hs",0.0001,0,0]96,["doesFileExist ../../src/Control/Monad/Fix.hs",0.0001,0,0]97,["doesFileExist ../../src/General/Fence.hs",0.0001,0,0]98,["doesFileExist ../../src/Development/Shake/Internal/History/Cloud.hs",0.0001,0,0]99,["doesFileExist ../../src/System/Environment.hs",0.0001,0,0]100,["doesFileExist ../../src/Data/Heap.hs",0.0001,0,0]101,["doesFileExist ../../src/Data/HashSet.hs",0.0001,0,0]102,["doesFileExist ../../src/Control/Monad/IO/Class.hs",0.0002,0,0]103,["../../src/Development/Shake/Internal/Rules/Rerun.hs",0.0003,0,0]104,["doesFileExist ../../src/Development/Shake/Internal/Core/Rules.hs",0.0001,0,0]105,["doesFileExist ../../src/Control/Monad/Trans/Reader.hs",0.0001,0,0]106,["doesFileExist ../../src/Control/Monad/ST.hs",0.0001,0,0]107,["doesFileExist ../../src/Data/Binary/Put.hs",0.0002,0,0]108,["doesFileExist ../../src/System/Posix/IO.hs",0.0001,0,0]109,["doesFileExist ../../src/System/IO.hs",0.0001,0,0]110,["../../src/Development/Shake/Internal/Resource.hs",0.0003,0,0]111,["doesFileExist ../../src/Unsafe/Coerce.hs",0.0009,0,0]112,["../../src/Development/Shake/Internal/Rules/Files.hs",0.0003,0,0]113,["doesFileExist ../../src/General/Bilist.hs",0.0001,0,0]114,["../../src/General/EscCodes.hs",0.0003,0,0]115,["../../src/Development/Shake/Internal/CompactUI.hs",0.0004,0,0]116,["doesFileExist ../../src/Development/Shake/Internal/History/Types.hs",0.0001,0,0]117,["doesFileExist ../../src/Development/Shake.hs",0.0001,0,0]118,["doesFileExist ../../src/Development/Shake/Internal/History/Network.hs",0.0001,0,0]119,["doesFileExist ../../src/Data/List/Extra.hs",0.0001,0,0]120,["../../src/General/Process.hs",0.0002,0,0]121,["doesFileExist ../../src/System/IO/Extra.hs",0.0001,0,0]122,["doesFileExist ../../src/Development/Shake/Internal/FileInfo.hs",0.0007,0,0]123,["../../src/Development/Shake/Internal/History/Symlink.hs",0.0004,0,0]124,["doesFileExist ../../src/Development/Shake/Internal/Rules/Directory.hs",0.0001,0,0]125,["../../src/Development/Shake/Internal/Rules/Oracle.hs",0.0006,0,0]126,["../../src/Development/Shake/Internal/Rules/Default.hs",0.0004,0,0]127,["../../src/Development/Shake/Internal/Progress.hs",0.0003,0,0]128,["doesFileExist ../../src/Data/ByteString/Lazy/Char8.hs",0.0002,0,0]129,["doesFileExist ../../src/Data/Dynamic.hs",0.0002,0,0]130,["doesFileExist ../../src/Data/ByteString/UTF8.hs",0.0001,0,0]131,["doesFileExist ../../src/Data/Monoid.hs",0.0004,0,0]132,["doesFileExist ../../src/Language/Javascript/Flot.hs",0.0002,0,0]133,["doesFileExist ../../src/General/Wait.hs",0.0001,0,0]134,["doesFileExist ../../src/Development/Shake/FilePath.hs",0.0001,0,0]135,["doesFileExist ../../src/Development/Shake/Internal/History/Server.hs",0.0001,0,0]136,["doesFileExist ../../src/Development/Ninja/Parse.hs",0.0001,0,0]137,["doesFileExist ../../src/System/FilePattern/Directory.hs",0.0001,0,0]138,["doesFileExist ../../src/Data/Tuple/Extra.hs",0.0001,0,0]139,["../../src/Development/Ninja/Type.hs",0.0005,0,0]140,["doesFileExist ../../src/Numeric/Extra.hs",0.0007,0,0]141,["doesFileExist ../../src/GHC/Conc.hs",0.0009,0,0]142,["doesFileExist ../../src/Data/Binary/Get.hs",0.0001,0,0]143,["../../src/Development/Shake/Internal/Core/Run.hs",0.0003,0,0]144,["doesFileExist ../../src/General/Template.hs",0.0001,0,0]145,["OracleQ (GhcPkg ())",0.1414,0,0,[],[["ghc-pkg",0.4508,0.5896]]]146,["doesFileExist ../../src/Language/Javascript/JQuery.hs",0.004,0,0]147,["../../src/Development/Shake/Internal/Demo.hs",0.0003,0,0]148,["doesFileExist ../../src/General/TypeMap.hs",0.0001,0,0]149,["doesFileExist ../../src/General/Timing.hs",0.0001,0,0]150,["doesFileExist ../../src/Development/Shake/Internal/History/Bloom.hs",0.0001,0,0]151,["../../src/Development/Shake.hs",0.0003,0,0]152,["doesFileExist ../../src/Control/Concurrent.hs",0.0001,0,0]153,["doesFileExist ../../src/System/Time/Extra.hs",0.0001,0,0]154,["../../src/Development/Shake/Internal/CmdOption.hs",0.0005,0,0]155,["Development/Shake/Internal/CmdOption.dep",0.0145,0,0,[[152],[80],[126]]]156,["Development/Shake/Internal/CmdOption.deps",0.0013,0,0,[[153]]]157,["doesFileExist ../../src/Development/Shake/Internal/Resource.hs",0.0007,0,0]158,["doesFileExist ../../src/Development/Shake/Internal/Rules/Files.hs",0.0001,0,0]159,["doesFileExist ../../src/General/ListBuilder.hs",0.0001,0,0]160,["../../src/Development/Shake/Internal/Errors.hs",0.0003,0,0]161,["doesFileExist ../../src/Development/Shake/Internal/Core/Storage.hs",0.0001,0,0]162,["doesFileExist ../../src/Foreign.hs",0.0001,0,0]163,["../../src/General/Makefile.hs",0.0003,0,0]164,["General/Makefile.dep",0.0026,0,0,[[161],[45],[59]]]165,["General/Makefile.deps",0.0018,0,0,[[162]]]166,["../../src/General/Cleanup.hs",0.0006,0,0]167,["doesFileExist ../../src/Foreign/Marshal/Alloc.hs",0.0001,0,0]168,["../../src/General/Thread.hs",0.0002,0,0]169,["doesFileExist ../../src/General/Pool.hs",0.0001,0,0]170,["doesFileExist ../../src/Control/Monad/Extra.hs",0.0001,0,0]171,["../../src/Development/Shake/Internal/Core/Build.hs",0.0002,0,0]172,["doesFileExist ../../src/Data/Either.hs",0.0001,0,0]173,["doesFileExist ../../src/Foreign/C/Error.hs",0.0001,0,0]174,["doesFileExist ../../src/Development/Shake/Internal/Value.hs",0.0001,0,0]175,["../../src/Development/Shake/Internal/Core/Monad.hs",0.0005,0,0]176,["doesFileExist ../../src/Development/Shake/Internal/Errors.hs",0.0001,0,0]177,["doesFileExist ../../src/Development/Shake/Internal/Rules/Oracle.hs",0.0002,0,0]178,["../../src/Development/Shake/Internal/Rules/OrderOnly.hs",0.0003,0,0]179,["doesFileExist ../../src/Development/Shake/Internal/Profile.hs",0.0002,0,0]180,["../../src/Development/Shake/Internal/Options.hs",0.0003,0,0]181,["doesFileExist ../../src/Data/Function.hs",0.0001,0,0]182,["doesFileExist ../../src/General/EscCodes.hs",0.0001,0,0]183,["doesFileExist ../../src/Development/Shake/Database.hs",0.0001,0,0]184,["doesFileExist ../../src/General/Intern.hs",0.0001,0,0]185,["doesFileExist ../../src/Development/Shake/Internal/Core/Monad.hs",0.0001,0,0]186,["doesFileExist ../../src/Control/Exception/Extra.hs",0.0001,0,0]187,["General/Template.dep",0.0041,0,0,[[82],[88],[184],[59],[5],[126],[130],[144]]]188,["General/Template.deps",0.0011,0,0,[[185]]]189,["doesFileExist ../../src/Control/DeepSeq.hs",0.0002,0,0]190,["doesFileExist ../../src/Control/Monad.hs",0.0001,0,0]191,["Development/Ninja/Parse.dep",0.0092,0,0,[[39],[45],[17],[72],[93],[188]]]192,["doesFileExist ../../src/Development/Shake/Internal/Derived.hs",0.0001,0,0]193,["../../shake.cabal",0.0002,0,0]194,[".pkgs",0.0044,0,0,[[191]]]195,["OracleQ (GhcFlags ())",0.0005,0,0,[[192]]]196,["Development/Shake/Internal/History/Types.o Development/Shake/Internal/History/Types.hi",0.532,0,0,[[86],[84],[143],[193]],[["ghc",3.3763,3.903]]]197,["Development/Shake/Internal/History/Types.hi",0.0004,0,0,[[194]]]198,["Development/Shake/Internal/History/Types.o",0.0006,0,0,[[194]]]199,["Development/Shake/Internal/CmdOption.o Development/Shake/Internal/CmdOption.hi",0.7516,0,0,[[154],[152],[143],[193]],[["ghc",1.8268,2.5737]]]200,["Development/Shake/Internal/CmdOption.o",0.0003,0,0,[[197]]]201,["Development/Shake/Internal/CmdOption.hi",0.0003,0,0,[[197]]]202,["General/Makefile.o General/Makefile.hi",0.5911,0,0,[[163],[161],[143],[193]],[["ghc",1.0346,1.6191]]]203,["General/Makefile.hi",0.0003,0,0,[[200]]]204,["General/Makefile.o",0.0003,0,0,[[200]]]205,["General/Template.o General/Template.hi",0.6362,0,0,[[186],[82],[143],[193]],[["ghc",2.8643,3.4941]]]206,["General/Template.o",0.0003,0,0,[[203]]]207,["General/Template.hi",0.0006,0,0,[[203]]]208,["doesFileExist ../../src/GHC/Stack.hs",0.0002,0,0]209,["doesFileExist ../../src/Control/Applicative.hs",0.0001,0,0]210,["../../src/Development/Shake/Command.hs",0.0002,0,0]211,["../../src/Development/Ninja/Lexer.hs",0.0005,0,0]212,["doesFileExist ../../src/General/Binary.hs",0.0001,0,0]213,["doesFileExist ../../src/General/Thread.hs",0.0001,0,0]214,["doesFileExist ../../src/Data/Functor.hs",0.0001,0,0]215,["General/TypeMap.dep",0.0029,0,0,[[58],[87],[61],[109],[212],[74]]]216,["General/TypeMap.deps",0.0012,0,0,[[213]]]217,["General/TypeMap.o General/TypeMap.hi",0.5423,0,0,[[214],[58],[143],[193]],[["ghc",0.6005,1.1343]]]218,["General/TypeMap.o",0.0014,0,0,[[215]]]219,["General/TypeMap.hi",0.0003,0,0,[[215]]]220,["doesFileExist ../../src/Control/Monad/Fail.hs",0.0001,0,0]221,["doesFileExist ../../src/Data/Maybe.hs",0.0001,0,0]222,["Development/Shake/Internal/History/Network.dep",0.0024,0,0,[[49],[79],[90],[52],[219],[42]]]223,["Development/Shake/Internal/History/Network.deps",0.0012,0,0,[[220]]]224,["Development/Shake/Internal/History/Network.o Development/Shake/Internal/History/Network.hi",0.7966,0,0,[[221],[49],[143],[193]],[["ghc",3.5012,4.2912]]]225,["Development/Shake/Internal/History/Network.hi",0.0014,0,0,[[222]]]226,["Development/Shake/Internal/History/Network.o",0.0007,0,0,[[222]]]227,["Development/Ninja/Type.dep",0.0152,0,0,[[137],[17],[45],[219]]]228,["General/Cleanup.dep",0.0052,0,0,[[164],[54],[87],[43],[117],[219]]]229,["General/Cleanup.deps",0.0017,0,0,[[226]]]230,["General/Cleanup.o General/Cleanup.hi",0.6072,0,0,[[227],[164],[143],[193]],[["ghc",2.258,2.8553]]]231,["General/Cleanup.hi",0.0004,0,0,[[228]]]232,["General/Cleanup.o",0.0003,0,0,[[228]]]233,["../../src/General/Wait.hs",0.0002,0,0]234,["../../src/General/GetOpt.hs",0.0003,0,0]235,["General/GetOpt.dep",0.0039,0,0,[[232],[32],[99],[219],[170],[117]]]236,["General/GetOpt.deps",0.0015,0,0,[[233]]]237,["General/GetOpt.o General/GetOpt.hi",0.6806,0,0,[[234],[232],[143],[193]],[["ghc",4.5104,5.1844]]]238,["General/GetOpt.o",0.0005,0,0,[[235]]]239,["General/GetOpt.hi",0.0003,0,0,[[235]]]240,["../../src/Paths.hs",0.0002,0,0]241,["doesFileExist ../../src/Development/Shake/Classes.hs",0.0002,0,0]242,["doesFileExist ../../src/Development/Shake/Internal/Options.hs",0.0002,0,0]243,["../../src/General/Intern.hs",0.0002,0,0]244,["doesFileExist ../../src/Foreign/Storable.hs",0.0002,0,0]245,["../../src/Development/Shake/Internal/History/Server.hs",0.0002,0,0]246,["doesFileExist ../../src/Development/Shake/Internal/Rules/Rerun.hs",0.0002,0,0]247,["../../src/Development/Shake/Internal/History/Serialise.hs",0.0004,0,0]248,["../../src/Development/Shake/Internal/FileInfo.hs",0.0003,0,0]249,["doesFileExist ../../src/Data/Binary.hs",0.0001,0,0]250,["Development/Shake/Classes.dep",0.0028,0,0,[[28],[48],[61],[247],[187]]]251,["Development/Shake/Classes.deps",0.0013,0,0,[[248]]]252,["Development/Shake/Classes.o Development/Shake/Classes.hi",0.4995,0,0,[[249],[28],[143],[193]],[["ghc",0.6007,1.0927]]]253,["Development/Shake/Classes.hi",0.0008,0,0,[[250]]]254,["Development/Shake/Classes.o",0.0005,0,0,[[250]]]255,["../../src/Development/Ninja/Env.hs",0.0004,0,0]256,["Development/Ninja/Env.dep",0.0041,0,0,[[253],[87],[48],[43]]]257,["Development/Ninja/Env.deps",0.0014,0,0,[[254]]]258,["Development/Ninja/Env.o Development/Ninja/Env.hi",0.6363,0,0,[[255],[253],[143],[193]],[["ghc",1.625,2.2508]]]259,["Development/Ninja/Env.o",0.0005,0,0,[[256]]]260,["Development/Ninja/Env.hi",0.0003,0,0,[[256]]]261,["Development/Ninja/Type.deps",0.0027,0,0,[[225],[255]]]262,["Development/Ninja/Type.o Development/Ninja/Type.hi",0.6863,0,0,[[259],[137,258],[143],[193]],[["ghc",4.2972,4.9755]]]263,["Development/Ninja/Type.hi",0.0003,0,0,[[260]]]264,["Development/Ninja/Type.o",0.0003,0,0,[[260]]]265,["../../src/Development/Shake/Internal/Core/Action.hs",0.0004,0,0]266,["doesFileExist ../../src/Development/Shake/Internal/CmdOption.hs",0.0002,0,0]267,["../../src/General/Ids.hs",0.0003,0,0]268,["doesFileExist ../../src/GHC/IO.hs",0.0001,0,0]269,["General/Ids.dep",0.0079,0,0,[[265],[56],[78],[54],[182],[168],[117],[219],[212],[87],[74],[266],[27]]]270,["doesFileExist ../../src/System/Directory.hs",0.0001,0,0]271,["../../src/General/Timing.hs",0.0002,0,0]272,["doesFileExist ../../src/Data/Either/Extra.hs",0.0001,0,0]273,["General/Fence.dep",0.0023,0,0,[[46],[188],[100],[219],[270],[43]]]274,["General/Fence.deps",0.001,0,0,[[271]]]275,["General/Fence.o General/Fence.hi",0.6501,0,0,[[272],[46],[143],[193]],[["ghc",1.1762,1.8127]]]276,["General/Fence.hi",0.0004,0,0,[[273]]]277,["General/Fence.o",0.0008,0,0,[[273]]]278,["doesFileExist ../../src/System/Info/Extra.hs",0.0002,0,0]279,["Development/Shake/FilePath.dep",0.0042,0,0,[[19],[276],[21],[88]]]280,["Development/Shake/FilePath.deps",0.0014,0,0,[[277]]]281,["Development/Shake/FilePath.o Development/Shake/FilePath.hi",0.576,0,0,[[278],[19],[143],[193]],[["ghc",0.6008,1.1707]]]282,["Development/Shake/FilePath.o",0.0003,0,0,[[279]]]283,["Development/Shake/FilePath.hi",0.0003,0,0,[[279]]]284,["Development/Shake/Internal/FilePattern.dep",0.0145,0,0,[[11],[174],[21],[117],[188],[59],[219],[276]]]285,["Development/Shake/Internal/FileName.dep",0.0097,0,0,[[67],[45],[128],[239],[21],[210],[276],[52]]]286,["doesFileExist ../../src/Development/Shake/Internal/History/Symlink.hs",0.0001,0,0]287,["doesFileExist ../../src/Development/Shake/Internal/Rules/File.hs",0.0001,0,0]288,["Development/Shake/Internal/Rules/Default.dep",0.0071,0,0,[[124],[102],[122],[285],[156],[244]]]289,["doesFileExist ../../src/System/Posix/Files.hs",0.0001,0,0]290,["doesFileExist ../../src/Data/ByteString/Lazy/Internal.hs",0.0033,0,0]291,["../../src/Development/Shake/Internal/Value.hs",0.0003,0,0]292,["Development/Shake/Internal/Value.dep",0.0088,0,0,[[289],[239],[174],[61],[66],[109]]]293,["doesFileExist ../../src/Data/ByteString/Unsafe.hs",0.0001,0,0]294,["doesFileExist ../../src/System/FilePattern.hs",0.0001,0,0]295,["doesFileExist ../../src/System/Directory/Extra.hs",0.0001,0,0]296,["Development/Shake/Internal/Args.dep",0.03,0,0,[[26],[65],[240],[102],[174],[68],[81],[47],[132],[285],[7],[181],[147],[211],[0],[180],[136],[184],[188],[170],[52],[219],[293],[97],[30],[151]]]297,["doesFileExist ../../src/General/Extra.hs",0.0001,0,0]298,["Development/Shake/Internal/History/Symlink.dep",0.0046,0,0,[[121],[168],[295],[268],[21],[12],[41],[287]]]299,["Development/Shake/Internal/Errors.dep",0.006,0,0,[[158],[136],[184],[100],[295],[61],[117],[219]]]300,["Development/Shake/Internal/CompactUI.dep",0.0071,0,0,[[113],[264],[240],[7],[151],[295],[54],[211],[180],[43],[168]]]301,["Run.dep",0.0066,0,0,[[70],[83],[97],[115],[132],[147],[168],[184],[219],[268],[295],[0],[15],[30]]]302,["Development/Shake/Internal/Demo.dep",0.0662,0,0,[[145],[65],[63],[184],[188],[59],[52],[219],[268],[30],[21],[295],[132],[107],[276]]]303,["General/Timing.dep",0.0088,0,0,[[269],[43],[5],[136],[138],[295],[151]]]304,["Development/Ninja/All.dep",0.014,0,0,[[1],[17],[72],[134],[115],[239],[3],[45],[268],[87],[99],[136],[184],[188],[219],[59],[117],[276],[295],[147],[35],[76],[120],[174],[285],[23]]]305,["General/Process.dep",0.0099,0,0,[[118],[150],[187],[184],[168],[117],[219],[171],[30],[119],[276],[15],[151],[4],[43],[45],[42],[295],[174],[44]]]306,["../../src/General/Extra.hs",0.0003,0,0]307,["doesFileExist ../../src/Data/Version/Extra.hs",0.0001,0,0]308,["Paths_shake.dep",0.0013,0,0,[[238],[305]]]309,["Paths_shake.deps",0.001,0,0,[[306]]]310,["Paths_shake.o Paths_shake.hi",0.4356,0,0,[[307],[238],[143],[193]],[["ghc",0.6004,1.0302]]]311,["Paths_shake.o",0.0014,0,0,[[308]]]312,["Paths_shake.hi",0.0003,0,0,[[308]]]313,["doesFileExist ../../src/Numeric.hs",0.0001,0,0]314,["doesFileExist ../../src/Development/Shake/Internal/Core/Types.hs",0.0001,0,0]315,["Development/Shake/Internal/Rules/Rerun.dep",0.0032,0,0,[[101],[102],[312],[57],[47],[239],[3],[210]]]316,["Development/Shake/Internal/Rules/Oracle.dep",0.0121,0,0,[[123],[312],[102],[240],[57],[172],[239],[3],[42],[188],[247],[210],[295]]]317,["Development/Shake/Internal/Core/Pool.dep",0.0057,0,0,[[20],[54],[167],[312],[183],[151],[270],[100],[95]]]318,["Development/Shake/Internal/Rules/OrderOnly.dep",0.0052,0,0,[[176],[312],[47],[285],[45]]]319,["Development/Shake/Internal/Rules/Files.dep",0.0132,0,0,[[110],[188],[100],[219],[117],[61],[210],[47],[312],[57],[102],[174],[295],[76],[239],[244],[285],[89],[132],[120],[240],[129],[74]]]320,["Development/Shake/Internal/Core/Build.dep",0.0239,0,0,[[169],[239],[167],[172],[174],[312],[47],[69],[96],[240],[183],[131],[45],[100],[295],[182],[54],[168],[138],[87],[13],[102],[61],[56],[219],[117],[270],[151]]]321,["Development/Shake.dep",0.0184,0,0,[[149],[74],[100],[172],[240],[312],[47],[102],[155],[190],[174],[7],[36],[63],[89],[122],[285],[156],[175],[23],[244]]]322,["Development/Shake/Internal/Rules/Directory.dep",0.0104,0,0,[[92],[168],[100],[219],[247],[52],[136],[99],[268],[97],[312],[47],[102],[57],[172],[239],[132],[89],[295],[210]]]323,["Development/Shake/Internal/Progress.dep",0.0183,0,0,[[125],[207],[136],[184],[168],[268],[15],[21],[59],[43],[52],[219],[240],[312],[45],[126],[138],[142],[180],[295],[65],[151],[13],[41]]]324,["Development/Shake/Internal/Derived.dep",0.0175,0,0,[[53],[168],[100],[268],[21],[107],[119],[174],[155],[312],[47],[102],[240],[285],[3],[87],[295],[117],[48],[61],[127]]]325,["Development/Shake/Internal/Profile.dep",0.0085,0,0,[[9],[142],[136],[179],[117],[219],[21],[119],[138],[295],[174],[312],[172],[13],[99],[65],[239],[151],[87],[126],[45],[182]]]326,["doesFileExist ../../src/General/Chunks.hs",0.0001,0,0]327,["Development/Shake/Internal/History/Shared.dep",0.0076,0,0,[[16],[172],[114],[284],[239],[210],[295],[324],[168],[293],[21],[107],[311],[120],[131],[76],[129],[100],[219],[3],[74]]]328,["doesFileExist ../../src/Control/Concurrent/Extra.hs",0.0001,0,0]329,["General/Pool.dep",0.0089,0,0,[[31],[326],[151],[54],[168],[147],[211],[98],[99],[56],[62]]]330,["Development/Shake/Internal/Core/Run.dep",0.0127,0,0,[[141],[54],[136],[326],[100],[210],[239],[159],[69],[96],[13],[182],[146],[131],[168],[61],[138],[117],[87],[127],[219],[43],[268],[151],[3],[312],[47],[102],[167],[7],[172],[177],[240],[174],[147],[211],[295],[34],[129],[74]]]331,["General/Thread.dep",0.0067,0,0,[[166],[34],[48],[326],[54],[295],[168]]]332,["Development/Shake/Internal/History/Cloud.dep",0.0104,0,0,[[71],[172],[114],[116],[133],[148],[326],[151],[188],[100],[6],[22],[95],[87],[61],[270],[210],[295],[131]]]333,["Development/Shake/Internal/Resource.dep",0.0092,0,0,[[108],[179],[5],[326],[95],[184],[136],[43],[168],[111],[167],[47],[312],[183],[73],[100],[151]]]334,["General/Wait.dep",0.004,0,0,[[231],[168],[100],[326],[56],[117],[78],[27],[218]]]335,["General/Wait.deps",0.001,0,0,[[332]]]336,["General/Wait.o General/Wait.hi",1.0318,0,0,[[333],[231],[143],[193]],[["ghc",1.0995,2.123]]]337,["General/Wait.hi",0.0003,0,0,[[334]]]338,["General/Wait.o",0.0014,0,0,[[334]]]339,["Development/Shake/Internal/Core/Action.dep",0.0147,0,0,[[263],[54],[168],[100],[187],[61],[268],[292],[135],[326],[219],[136],[43],[117],[138],[295],[87],[13],[182],[239],[183],[69],[167],[312],[102],[73],[172],[120],[76],[240],[174],[34],[95]]]340,["General/Extra.dep",0.0188,0,0,[[304],[184],[59],[117],[97],[132],[187],[311],[34],[61],[119],[151],[5],[276],[62],[268],[30],[138],[242],[326],[219],[48],[78],[188],[104],[139],[206]]]341,["General/Extra.deps",0.0041,0,0,[[338],[278,227]]]342,["General/Extra.o General/Extra.hi",1.364,0,0,[[339],[304,281,229],[143],[193]],[["ghc",3.4583,4.8013]]]343,["General/Extra.hi",0.001,0,0,[[340]]]344,["General/Extra.o",0.0003,0,0,[[340]]]345,["Development/Shake/Internal/History/Symlink.deps",0.0029,0,0,[[296],[339]]]346,["Development/Shake/Internal/History/Symlink.o Development/Shake/Internal/History/Symlink.hi",1.1794,0,0,[[343],[121,281,229,341],[143],[193]],[["ghc",4.8226,5.9703]]]347,["Development/Shake/Internal/History/Symlink.hi",0.0009,0,0,[[344]]]348,["Development/Shake/Internal/History/Symlink.o",0.0004,0,0,[[344]]]349,["Development/Shake/Internal/Errors.deps",0.0063,0,0,[[297],[339]]]350,["Development/Shake/Internal/Errors.o Development/Shake/Internal/Errors.hi",1.0817,0,0,[[347],[158,281,229,341],[143],[193]],[["ghc",4.9817,6.0552]]]351,["Development/Shake/Internal/Errors.o",0.0003,0,0,[[348]]]352,["Development/Shake/Internal/Errors.hi",0.0003,0,0,[[348]]]353,["Development/Shake/Internal/FilePattern.deps",0.0084,0,0,[[282],[347]]]354,["Development/Shake/Internal/FilePattern.o Development/Shake/Internal/FilePattern.hi",0.844,0,0,[[351],[11,281,350,229,341],[143],[193]],[["ghc",6.7192,7.5541]]]355,["Development/Shake/Internal/FilePattern.o",0.0006,0,0,[[352]]]356,["Development/Shake/Internal/FilePattern.hi",0.0006,0,0,[[352]]]357,["Development/Shake/Internal/Value.deps",0.0033,0,0,[[290],[249,347]]]358,["Development/Shake/Internal/Value.o Development/Shake/Internal/Value.hi",0.8159,0,0,[[355],[289,251,281,350,229,341],[143],[193]],[["ghc",6.3347,7.1393]]]359,["Development/Shake/Internal/Value.hi",0.0006,0,0,[[356]]]360,["Development/Shake/Internal/Value.o",0.0003,0,0,[[356]]]361,["General/Process.deps",0.0155,0,0,[[303],[339,347]]]362,["General/Process.o General/Process.hi",0.9122,0,0,[[359],[118,281,350,229,341],[143],[193]],[["ghc",6.2048,7.1061]]]363,["General/Process.o",0.0003,0,0,[[360]]]364,["General/Process.hi",0.0005,0,0,[[360]]]365,["General/Timing.deps",0.007,0,0,[[301],[339]]]366,["General/Timing.o General/Timing.hi",0.6649,0,0,[[363],[269,281,229,341],[143],[193]],[["ghc",4.8699,5.5256]]]367,["General/Timing.o",0.0003,0,0,[[364]]]368,["General/Timing.hi",0.0005,0,0,[[364]]]369,["General/Thread.deps",0.0034,0,0,[[329],[227,339]]]370,["General/Thread.o General/Thread.hi",0.8005,0,0,[[367],[166,281,229,341],[143],[193]],[["ghc",5.5352,6.3282]]]371,["General/Thread.hi",0.0003,0,0,[[368]]]372,["General/Thread.o",0.0003,0,0,[[368]]]373,["General/Pool.deps",0.0052,0,0,[[327],[363,367]]]374,["General/Pool.o General/Pool.hi",0.8336,0,0,[[371],[31,281,229,341,369,366],[143],[193]],[["ghc",7.1157,7.9387]]]375,["General/Pool.o",0.0008,0,0,[[372]]]376,["General/Pool.hi",0.0004,0,0,[[372]]]377,["doesFileExist ../../src/Development/Shake/Internal/History/Serialise.hs",0.0002,0,0]378,["Development/Shake/Internal/History/Server.dep",0.006,0,0,[[243],[148],[375],[172],[210],[295],[87],[42],[3],[120],[114],[116],[61]]]379,["../../src/Development/Shake/Database.hs",0.0003,0,0]380,["Development/Shake/Database.dep",0.0127,0,0,[[377],[326],[54],[188],[100],[43],[34],[174],[240],[102],[37],[312],[50]]]381,["doesFileExist ../../src/Data/Word.hs",0.0002,0,0]382,["General/EscCodes.dep",0.0068,0,0,[[112],[59],[107],[97],[5],[379],[66],[12],[242],[165]]]383,["General/EscCodes.deps",0.0012,0,0,[[380]]]384,["General/EscCodes.o General/EscCodes.hi",0.88,0,0,[[381],[112],[143],[193]],[["ghc",2.5782,3.4493]]]385,["General/EscCodes.o",0.0006,0,0,[[382]]]386,["General/EscCodes.hi",0.0003,0,0,[[382]]]387,["General/Intern.dep",0.0025,0,0,[[241],[239],[242],[379],[74],[87],[52]]]388,["General/Intern.deps",0.0021,0,0,[[385],[249]]]389,["General/Intern.o General/Intern.hi",0.7673,0,0,[[386],[241,251],[143],[193]],[["ghc",2.132,2.8908]]]390,["General/Intern.o",0.0003,0,0,[[387]]]391,["General/Intern.hi",0.0005,0,0,[[387]]]392,["General/Ids.deps",0.0076,0,0,[[267],[386]]]393,["General/Ids.o General/Ids.hi",0.8581,0,0,[[390],[265,251,389],[143],[193]],[["ghc",2.8992,3.7487]]]394,["General/Ids.o",0.001,0,0,[[391]]]395,["General/Ids.hi",0.0003,0,0,[[391]]]396,["Development/Shake/Internal/Rules/File.dep",0.0145,0,0,[[55],[168],[100],[61],[52],[219],[45],[99],[242],[379],[129],[210],[295],[312],[102],[57],[47],[76],[244],[239],[132],[89],[120],[240],[174],[21],[5],[74]]]397,["Development/Shake/Internal/FileInfo.dep",0.0102,0,0,[[246],[48],[184],[239],[76],[288],[59],[379],[311],[107],[160],[2],[268],[33],[174],[188],[45],[41],[44],[60]]]398,["General/FileLock.dep",0.0049,0,0,[[91],[184],[21],[295],[34],[188],[66],[379],[12],[41],[107],[106]]]399,["General/FileLock.deps",0.0024,0,0,[[396],[339,227]]]400,["General/FileLock.o General/FileLock.hi",0.7159,0,0,[[397],[91,281,229,341],[143],[193]],[["ghc",6.0052,6.7105]]]401,["General/FileLock.o",0.0003,0,0,[[398]]]402,["General/FileLock.hi",0.0003,0,0,[[398]]]403,["Development/Shake/Internal/Core/Storage.dep",0.0086,0,0,[[25],[324],[34],[210],[182],[240],[174],[147],[38],[13],[184],[168],[129],[270],[33],[59],[379],[51],[239],[311],[295],[117],[219],[21],[128],[87],[45],[3],[74]]]404,["General/Chunks.dep",0.0063,0,0,[[77],[151],[21],[326],[168],[54],[107],[268],[3],[379],[129],[210],[295],[34],[211],[74]]]405,["doesFileExist ../../src/Data/ByteString/Internal.hs",0.0002,0,0]406,["Development/Ninja/Lexer.dep",0.0116,0,0,[[209],[136],[59],[45],[291],[72],[403],[5],[379],[12],[242],[27]]]407,["Development/Ninja/Lexer.deps",0.006,0,0,[[404],[259]]]408,["Development/Ninja/Lexer.o Development/Ninja/Lexer.hi",1.0702,0,0,[[405],[209,258,261],[143],[193]],[["ghc",7.7163,8.7791]]]409,["Development/Ninja/Lexer.o",0.0003,0,0,[[406]]]410,["Development/Ninja/Lexer.hi",0.0003,0,0,[[406]]]411,["Development/Ninja/Parse.deps",0.0057,0,0,[[189],[255,259,405]]]412,["Development/Ninja/Parse.o Development/Ninja/Parse.hi",0.6308,0,0,[[409],[39,258,408,261],[143],[193]],[["ghc",8.7861,9.4093]]]413,["Development/Ninja/Parse.hi",0.0004,0,0,[[410]]]414,["Development/Ninja/Parse.o",0.0003,0,0,[[410]]]415,["doesFileExist ../../src/Data/Semigroup.hs",0.0003,0,0]416,["General/ListBuilder.dep",0.0018,0,0,[[24],[413]]]417,["General/ListBuilder.deps",0.001,0,0,[[414]]]418,["General/ListBuilder.o General/ListBuilder.hi",0.5663,0,0,[[415],[24],[143],[193]],[["ghc",7.1502,7.7115]]]419,["General/ListBuilder.o",0.0003,0,0,[[416]]]420,["General/ListBuilder.hi",0.0004,0,0,[[416]]]421,["General/Bilist.dep",0.0018,0,0,[[75],[413]]]422,["General/Bilist.deps",0.0012,0,0,[[419]]]423,["General/Bilist.o General/Bilist.hi",0.6522,0,0,[[420],[75],[143],[193]],[["ghc",2.7239,3.3698]]]424,["General/Bilist.hi",0.0003,0,0,[[421]]]425,["General/Bilist.o",0.0011,0,0,[[421]]]426,["Development/Shake/Internal/Core/Monad.dep",0.0154,0,0,[[173],[184],[100],[43],[413],[74],[218]]]427,["Development/Shake/Internal/Core/Monad.deps",0.0013,0,0,[[424]]]428,["Development/Shake/Internal/Core/Monad.o Development/Shake/Internal/Core/Monad.hi",0.9616,0,0,[[425],[173],[143],[193]],[["ghc",3.909,4.8636]]]429,["Development/Shake/Internal/Core/Monad.o",0.0006,0,0,[[426]]]430,["Development/Shake/Internal/Core/Monad.hi",0.0004,0,0,[[426]]]431,["Development/Shake/Command.dep",0.0187,0,0,[[208],[136],[168],[100],[59],[270],[117],[219],[413],[268],[97],[30],[119],[15],[276],[151],[5],[3],[126],[295],[18],[264],[47],[312],[132],[89],[240],[285],[190]]]432,["Development/Shake/Internal/History/Serialise.dep",0.0064,0,0,[[245],[148],[295],[210],[13],[117],[172],[120],[114],[87],[413],[61],[74]]]433,["Development/Shake/Internal/Core/Rules.dep",0.0166,0,0,[[40],[207],[136],[54],[168],[94],[100],[103],[239],[210],[295],[61],[80],[117],[87],[146],[219],[43],[413],[42],[8],[105],[140],[157],[218],[312],[183],[172],[240],[174]]]434,["Development/Shake/Internal/Options.dep",0.0238,0,0,[[178],[80],[117],[136],[219],[127],[188],[295],[87],[89],[45],[128],[264],[413],[74]]]435,["Development/Shake/Internal/Options.deps",0.0096,0,0,[[432],[339,351,154]]]436,["Development/Shake/Internal/Options.o Development/Shake/Internal/Options.hi",1.5102,0,0,[[433],[178,281,199,350,354,229,341],[143],[193]],[["ghc",7.5631,9.0593]]]437,["Development/Shake/Internal/Options.hi",0.0004,0,0,[[434]]]438,["Development/Shake/Internal/Options.o",0.0005,0,0,[[434]]]439,["Development/Shake/Internal/Core/Types.dep",0.0089,0,0,[[10],[100],[187],[242],[379],[61],[210],[219],[52],[54],[295],[326],[69],[96],[114],[131],[174],[146],[43],[45],[138],[151],[182],[99],[87],[13],[136],[167],[183],[172],[240],[239],[413],[34],[74],[218]]]440,["Development/Shake/Internal/History/Bloom.dep",0.0027,0,0,[[64],[379],[66],[48],[413],[242],[12],[74]]]441,["Development/Shake/Internal/History/Bloom.deps",0.0015,0,0,[[438]]]442,["Development/Shake/Internal/History/Bloom.o Development/Shake/Internal/History/Bloom.hi",0.6861,0,0,[[439],[64],[143],[193]],[["ghc",1.1417,1.8181]]]443,["Development/Shake/Internal/History/Bloom.o",0.0004,0,0,[[440]]]444,["Development/Shake/Internal/History/Bloom.hi",0.0004,0,0,[[440]]]445,["../../src/Development/Shake/Internal/Paths.hs",0.0002,0,0]446,["Development/Shake/Internal/Paths.dep",0.0066,0,0,[[443],[14],[54],[168],[29],[268],[21],[276],[5],[97],[295],[42]]]447,["Development/Shake/Internal/Paths.deps",0.0121,0,0,[[444],[307,339]]]448,["Development/Shake/Internal/Paths.o Development/Shake/Internal/Paths.hi",1.0141,0,0,[[445],[443,281,229,341,310],[143],[193]],[["ghc",5.1914,6.1978]]]449,["Development/Shake/Internal/Paths.hi",0.0004,0,0,[[446]]]450,["Development/Shake/Internal/Paths.o",0.0003,0,0,[[446]]]451,["../../src/General/Binary.hs",0.0003,0,0]452,["General/Binary.dep",0.0082,0,0,[[449],[239],[188],[247],[117],[136],[242],[12],[5],[3],[403],[291],[42],[128],[413]]]453,["General/Binary.deps",0.0022,0,0,[[450],[249]]]454,["General/Binary.o General/Binary.hi",0.897,0,0,[[451],[449,251],[143],[193]],[["ghc",1.8267,2.7129]]]455,["General/Binary.hi",0.0003,0,0,[[452]]]456,["General/Binary.o",0.0003,0,0,[[452]]]457,["Development/Shake/Internal/FileName.deps",0.0072,0,0,[[283],[249,451]]]458,["Development/Shake/Internal/FileName.o Development/Shake/Internal/FileName.hi",0.7527,0,0,[[455],[67,251,453],[143],[193]],[["ghc",3.7574,4.5026]]]459,["Development/Shake/Internal/FileName.hi",0.0006,0,0,[[456]]]460,["Development/Shake/Internal/FileName.o",0.001,0,0,[[456]]]461,["Development/Shake/Internal/FileInfo.deps",0.0056,0,0,[[395],[249,455,347]]]462,["Development/Shake/Internal/FileInfo.o Development/Shake/Internal/FileInfo.hi",0.8833,0,0,[[459],[246,251,281,350,457,453,229,341],[143],[193]],[["ghc",6.0642,6.9357]]]463,["Development/Shake/Internal/FileInfo.o",0.0003,0,0,[[460]]]464,["Development/Shake/Internal/FileInfo.hi",0.0007,0,0,[[460]]]465,["Development/Shake/Internal/History/Serialise.deps",0.0068,0,0,[[430],[439,339,451,390,355,459,86]]]466,["Development/Shake/Internal/History/Serialise.o Development/Shake/Internal/History/Serialise.hi",0.9927,0,0,[[463],[245,251,281,350,462,457,442,195,357,453,229,341,393,389],[143],[193]],[["ghc",7.9511,8.9334]]]467,["Development/Shake/Internal/History/Serialise.hi",0.0004,0,0,[[464]]]468,["Development/Shake/Internal/History/Serialise.o",0.0005,0,0,[[464]]]469,["Development/Shake/Internal/History/Server.deps",0.0068,0,0,[[376],[439,463,355,451,339,459,86,221]]]470,["Development/Shake/Internal/History/Server.o Development/Shake/Internal/History/Server.hi",0.5586,0,0,[[467],[243,251,281,350,462,457,442,223,465,195,357,453,229,341,393,389],[143],[193]],[["ghc",8.943,9.4933]]]471,["Development/Shake/Internal/History/Server.hi",0.0005,0,0,[[468]]]472,["Development/Shake/Internal/History/Server.o",0.0005,0,0,[[468]]]473,["Development/Shake/Internal/History/Cloud.deps",0.0065,0,0,[[330],[355,86,221,467,439,272,451,339,333]]]474,["Development/Shake/Internal/History/Cloud.o Development/Shake/Internal/History/Cloud.hi",0.8027,0,0,[[471],[71,251,281,350,462,457,442,223,465,469,195,357,453,229,341,274,393,389,335],[143],[193]],[["ghc",9.5012,10.2923]]]475,["Development/Shake/Internal/History/Cloud.hi",0.0005,0,0,[[472]]]476,["Development/Shake/Internal/History/Cloud.o",0.001,0,0,[[472]]]477,["General/Chunks.deps",0.0086,0,0,[[402],[451,339,227,367]]]478,["General/Chunks.o General/Chunks.hi",0.7743,0,0,[[475],[77,251,281,453,229,341,369],[143],[193]],[["ghc",6.9468,7.7111]]]479,["General/Chunks.hi",0.0008,0,0,[[476]]]480,["General/Chunks.o",0.0003,0,0,[[476]]]481,["Development/Shake/Internal/Core/Storage.deps",0.0071,0,0,[[401],[475,227,451,386,433,347,363,397,390,249,339]]]482,["Development/Shake/Internal/Core/Storage.o Development/Shake/Internal/Core/Storage.hi",0.889,0,0,[[479],[25,251,281,199,350,354,435,453,477,229,341,400,393,389,369,366],[143],[193]],[["ghc",9.0672,9.9391]]]483,["Development/Shake/Internal/Core/Storage.hi",0.0003,0,0,[[480]]]484,["Development/Shake/Internal/Core/Storage.o",0.0004,0,0,[[480]]]485,["Development/Shake/Internal/History/Shared.deps",0.0081,0,0,[[325],[355,86,343,249,451,339,475,459,333,455]]]486,["Development/Shake/Internal/History/Shared.o Development/Shake/Internal/History/Shared.hi",0.856,0,0,[[483],[16,251,281,350,462,457,345,195,357,453,477,229,341,369,335],[143],[193]],[["ghc",7.7229,8.5677]]]487,["Development/Shake/Internal/History/Shared.hi",0.0004,0,0,[[484]]]488,["Development/Shake/Internal/History/Shared.o",0.0006,0,0,[[484]]]489,["Development/Shake/Internal/Core/Types.deps",0.0113,0,0,[[437],[451,339,483,471,86,333,347,214,386,390,371,425,355,433,249,227]]]490,["Development/Shake/Internal/Core/Types.o Development/Shake/Internal/Core/Types.hi",1.3355,0,0,[[487],[10,251,281,199,428,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,374,369,366,217,335],[143],[193]],[["ghc",10.3035,11.6223]]]491,["Development/Shake/Internal/Core/Types.o",0.0005,0,0,[[488]]]492,["Development/Shake/Internal/Core/Types.hi",0.0004,0,0,[[488]]]493,["Development/Shake/Internal/Profile.deps",0.0051,0,0,[[323],[186,339,347,487,355,390,445,249,386]]]494,["Development/Shake/Internal/Profile.o Development/Shake/Internal/Profile.hi",0.9127,0,0,[[491],[9,251,281,199,428,490,350,462,457,354,442,473,223,465,469,485,345,195,435,447,357,453,477,229,341,274,393,389,374,205,369,366,217,335,310],[143],[193]],[["ghc",11.6373,12.5327]]]495,["Development/Shake/Internal/Profile.hi",0.0005,0,0,[[492]]]496,["Development/Shake/Internal/Profile.o",0.0005,0,0,[[492]]]497,["Development/Shake/Internal/Core/Pool.deps",0.0059,0,0,[[315],[371,487,425,272]]]498,["Development/Shake/Internal/Core/Pool.o Development/Shake/Internal/Core/Pool.hi",0.5991,0,0,[[495],[20,251,281,199,428,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,374,369,366,217,335],[143],[193]],[["ghc",11.6377,12.2258]]]499,["Development/Shake/Internal/Core/Pool.hi",0.0004,0,0,[[496]]]500,["Development/Shake/Internal/Core/Pool.o",0.0007,0,0,[[496]]]501,["Development/Shake/Internal/Progress.deps",0.0064,0,0,[[321],[433,487,186,381,339,445,390]]]502,["Development/Shake/Internal/Progress.o Development/Shake/Internal/Progress.hi",1.0471,0,0,[[499],[125,251,281,199,428,490,350,462,457,354,442,473,223,465,469,485,345,195,435,447,357,453,477,229,384,341,274,393,389,374,205,369,366,217,335,310],[143],[193]],[["ghc",11.6377,12.6697]]]503,["Development/Shake/Internal/Progress.hi",0.0007,0,0,[[500]]]504,["Development/Shake/Internal/Progress.o",0.0003,0,0,[[500]]]505,["Development/Shake/Internal/CompactUI.deps",0.0063,0,0,[[298],[154,433,499,339,367,381]]]506,["Development/Shake/Internal/CompactUI.o Development/Shake/Internal/CompactUI.hi",0.6297,0,0,[[503],[113,251,281,199,428,490,350,462,457,354,442,473,223,465,469,485,345,195,435,447,501,357,453,477,229,384,341,274,393,389,374,205,369,366,217,335,310],[143],[193]],[["ghc",12.6827,13.3019]]]507,["Development/Shake/Internal/CompactUI.o",0.0003,0,0,[[504]]]508,["Development/Shake/Internal/CompactUI.hi",0.0004,0,0,[[504]]]509,["Development/Shake/Internal/Core/Rules.deps",0.0081,0,0,[[431],[249,451,339,214,415,487,425,355,433,347]]]510,["Development/Shake/Internal/Core/Rules.o Development/Shake/Internal/Core/Rules.hi",1.0384,0,0,[[507],[40,251,281,199,428,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",11.6377,12.6618]]]511,["Development/Shake/Internal/Core/Rules.hi",0.0008,0,0,[[508]]]512,["Development/Shake/Internal/Core/Rules.o",0.0003,0,0,[[508]]]513,["Development/Shake/Internal/Core/Action.deps",0.0094,0,0,[[337],[339,390,386,249,425,483,371,487,507,495,355,459,455,433,347,227,272]]]514,["Development/Shake/Internal/Core/Action.o Development/Shake/Internal/Core/Action.hi",1.2343,0,0,[[511],[263,251,281,199,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",12.6736,13.8914]]]515,["Development/Shake/Internal/Core/Action.o",0.0007,0,0,[[512]]]516,["Development/Shake/Internal/Core/Action.hi",0.0003,0,0,[[512]]]517,["Development/Shake/Internal/Resource.deps",0.0069,0,0,[[331],[272,420,371,511,487,425,495]]]518,["Development/Shake/Internal/Resource.o Development/Shake/Internal/Resource.hi",0.7486,0,0,[[515],[108,251,281,199,514,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,422,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",13.908,14.6456]]]519,["Development/Shake/Internal/Resource.o",0.0003,0,0,[[516]]]520,["Development/Shake/Internal/Resource.hi",0.0003,0,0,[[516]]]521,["Development/Shake/Internal/Core/Run.deps",0.0097,0,0,[[328],[451,249,479,483,471,390,386,214,333,487,511,507,371,499,355,491,433,347,363,367,339,227]]]522,["Development/Shake/Internal/Core/Run.o Development/Shake/Internal/Core/Run.hi",1.1905,0,0,[[519],[141,251,281,199,514,428,497,509,481,490,350,462,457,354,442,473,223,465,469,485,345,195,435,447,493,501,357,453,477,229,384,341,274,400,393,389,418,374,205,369,366,217,335,310],[143],[193]],[["ghc",13.9076,15.08]]]523,["Development/Shake/Internal/Core/Run.hi",0.0004,0,0,[[520]]]524,["Development/Shake/Internal/Core/Run.o",0.0004,0,0,[[520]]]525,["Development/Shake/Internal/Core/Build.deps",0.0083,0,0,[[318],[249,371,355,347,487,511,483,471,433,425,333,339,386,390,507]]]526,["Development/Shake/Internal/Core/Build.o Development/Shake/Internal/Core/Build.hi",1.0772,0,0,[[523],[169,251,281,199,514,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",13.908,14.9701]]]527,["Development/Shake/Internal/Core/Build.hi",0.0004,0,0,[[524]]]528,["Development/Shake/Internal/Core/Build.o",0.0007,0,0,[[524]]]529,["Development/Shake/Internal/Rules/Oracle.deps",0.0066,0,0,[[314],[487,507,433,523,355,249,451,339]]]530,["Development/Shake/Internal/Rules/Oracle.o Development/Shake/Internal/Rules/Oracle.hi",0.9125,0,0,[[527],[123,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",14.9848,15.8686]]]531,["Development/Shake/Internal/Rules/Oracle.o",0.0005,0,0,[[528]]]532,["Development/Shake/Internal/Rules/Oracle.hi",0.0006,0,0,[[528]]]533,["Development/Shake/Internal/Rules/Rerun.deps",0.0067,0,0,[[313],[507,487,523,511,249,451]]]534,["Development/Shake/Internal/Rules/Rerun.o Development/Shake/Internal/Rules/Rerun.hi",0.9982,0,0,[[531],[101,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",14.9844,15.9726]]]535,["Development/Shake/Internal/Rules/Rerun.hi",0.0004,0,0,[[532]]]536,["Development/Shake/Internal/Rules/Rerun.o",0.0005,0,0,[[532]]]537,["Development/Shake/Internal/Rules/File.deps",0.0142,0,0,[[394],[451,339,487,507,523,511,455,531,249,278,351,459,433,347]]]538,["Development/Shake/Internal/Rules/File.o Development/Shake/Internal/Rules/File.hi",1.0247,0,0,[[535],[55,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,533,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",15.9807,16.9911]]]539,["Development/Shake/Internal/Rules/File.o",0.0004,0,0,[[536]]]540,["Development/Shake/Internal/Rules/File.hi",0.0004,0,0,[[536]]]541,["Development/Shake/Internal/Rules/OrderOnly.deps",0.0073,0,0,[[316],[487,511,535]]]542,["Development/Shake/Internal/Rules/OrderOnly.o Development/Shake/Internal/Rules/OrderOnly.hi",0.6053,0,0,[[539],[176,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,538,533,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",17.0047,17.6002]]]543,["Development/Shake/Internal/Rules/OrderOnly.o",0.0003,0,0,[[540]]]544,["Development/Shake/Internal/Rules/OrderOnly.hi",0.0005,0,0,[[540]]]545,["Development/Shake/Internal/Derived.deps",0.0097,0,0,[[322],[347,515,487,511,507,433,535,339]]]546,["Development/Shake/Internal/Derived.o Development/Shake/Internal/Derived.hi",0.8974,0,0,[[543],[53,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,518,538,533,357,422,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",17.0048,17.8887]]]547,["Development/Shake/Internal/Derived.hi",0.0004,0,0,[[544]]]548,["Development/Shake/Internal/Derived.o",0.0005,0,0,[[544]]]549,["Development/Shake/Command.deps",0.007,0,0,[[429],[339,359,154,511,487,278,351,433,535,543]]]550,["Development/Shake/Command.o Development/Shake/Command.hi",1.3214,0,0,[[547],[208,251,281,199,514,525,428,497,509,490,545,350,462,457,354,442,473,223,465,469,485,345,195,435,518,538,533,357,422,453,477,229,341,274,393,389,418,374,362,369,366,217,335],[143],[193]],[["ghc",17.9004,19.2094]]]551,["Development/Shake/Command.o",0.0004,0,0,[[548]]]552,["Development/Shake/Command.hi",0.0003,0,0,[[548]]]553,["Development/Shake/Internal/Demo.deps",0.0056,0,0,[[300],[445,547,339,278]]]554,["Development/Shake/Internal/Demo.o Development/Shake/Internal/Demo.hi",0.8708,0,0,[[551],[145,251,550,281,199,514,525,428,497,509,490,545,350,462,457,354,442,473,223,465,469,485,345,195,435,447,518,538,533,357,422,453,477,229,341,274,393,389,418,374,362,369,366,217,335,310],[143],[193]],[["ghc",19.2207,20.0818]]]555,["Development/Shake/Internal/Demo.hi",0.0004,0,0,[[552]]]556,["Development/Shake/Internal/Demo.o",0.0004,0,0,[[552]]]557,["Development/Shake/Internal/Rules/Files.deps",0.0132,0,0,[[317],[451,511,487,523,507,347,339,455,249,531,535,351,278,459,433]]]558,["Development/Shake/Internal/Rules/Files.o Development/Shake/Internal/Rules/Files.hi",0.997,0,0,[[555],[110,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,538,533,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",17.0044,17.9879]]]559,["Development/Shake/Internal/Rules/Files.hi",0.001,0,0,[[556]]]560,["Development/Shake/Internal/Rules/Files.o",0.0004,0,0,[[556]]]561,["Development/Shake/Internal/Rules/Directory.deps",0.0074,0,0,[[320],[487,511,507,523,355,249,278,351,339,451]]]562,["Development/Shake/Internal/Rules/Directory.o Development/Shake/Internal/Rules/Directory.hi",1.0173,0,0,[[559],[92,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",15.0203,15.9896]]]563,["Development/Shake/Internal/Rules/Directory.hi",0.0005,0,0,[[560]]]564,["Development/Shake/Internal/Rules/Directory.o",0.0005,0,0,[[560]]]565,["Development/Shake/Internal/Rules/Default.deps",0.0058,0,0,[[286],[507,559,535,555,531]]]566,["Development/Shake/Internal/Rules/Default.o Development/Shake/Internal/Rules/Default.hi",0.5379,0,0,[[563],[124,251,281,199,514,525,428,497,509,490,350,462,457,354,442,473,223,465,469,485,345,195,435,561,538,557,533,357,453,477,229,341,274,393,389,418,374,369,366,217,335],[143],[193]],[["ghc",17.999,18.5225]]]567,["Development/Shake/Internal/Rules/Default.hi",0.0009,0,0,[[564]]]568,["Development/Shake/Internal/Rules/Default.o",0.0004,0,0,[[564]]]569,["Development/Shake/Database.deps",0.0039,0,0,[[378],[227,347,433,507,519,487,563]]]570,["Development/Shake/Database.o Development/Shake/Database.hi",0.8172,0,0,[[567],[377,251,281,199,514,525,428,497,509,521,481,490,350,462,457,354,442,473,223,465,469,485,345,195,435,447,493,501,565,561,538,557,533,357,453,477,229,384,341,274,400,393,389,418,374,205,369,366,217,335,310],[143],[193]],[["ghc",18.5297,19.3381]]]571,["Development/Shake/Database.o",0.0004,0,0,[[568]]]572,["Development/Shake/Database.hi",0.0003,0,0,[[568]]]573,["Development/Shake/Internal/Args.deps",0.0095,0,0,[[294],[445,433,507,347,503,551,511,278,535,499,567,363,367,234,381]]]574,["Development/Shake/Internal/Args.o Development/Shake/Internal/Args.hi",1.0868,0,0,[[571],[26,251,550,570,281,199,506,514,525,428,497,509,521,481,490,553,545,350,462,457,354,442,473,223,465,469,485,345,195,435,447,493,501,518,565,561,538,557,533,357,422,453,477,229,384,341,274,400,237,393,389,418,374,362,205,369,366,217,335,310],[143],[193]],[["ghc",20.0902,21.1625]]]575,["Development/Shake/Internal/Args.o",0.0004,0,0,[[572]]]576,["Development/Shake/Internal/Args.hi",0.0003,0,0,[[572]]]577,["Development/Shake.deps",0.0108,0,0,[[319],[355,433,487,511,507,515,543,347,499,571,547,351,559,535,555,527,539,531]]]578,["Development/Shake.o Development/Shake.hi",0.6938,0,0,[[575],[149,251,550,570,281,574,199,506,514,525,428,497,509,521,481,490,553,545,350,462,457,354,442,473,223,465,469,485,345,195,435,447,493,501,518,565,561,538,557,530,542,533,357,422,453,477,229,384,341,274,400,237,393,389,418,374,362,205,369,366,217,335,310],[143],[193]],[["ghc",21.1754,21.8577]]]579,["Development/Shake.hi",0.0003,0,0,[[576]]]580,["Development/Shake.o",0.0003,0,0,[[576]]]581,["Development/Ninja/All.deps",0.0084,0,0,[[302],[255,259,409,575,249,339,363,163,455,459,347,535,539]]]582,["Development/Ninja/All.o Development/Ninja/All.hi",1.0557,0,0,[[579],[1,258,408,411,261,577,251,550,570,281,574,199,506,514,525,428,497,509,521,481,490,553,545,350,462,457,354,442,473,223,465,469,485,345,195,435,447,493,501,518,565,561,538,557,530,542,533,357,422,453,477,229,384,341,274,400,237,393,389,418,201,374,362,205,369,366,217,335,310],[143],[193]],[["ghc",21.8681,22.9021]]]583,["Development/Ninja/All.hi",0.0003,0,0,[[580]]]584,["Development/Ninja/All.o",0.0005,0,0,[[580]]]585,["Run.deps",0.006,0,0,[[299],[579,575,278,363,339,234]]]586,["Run.o Run.hi",0.7432,0,0,[[583],[70,581,258,408,411,261,577,251,550,570,281,574,199,506,514,525,428,497,509,521,481,490,553,545,350,462,457,354,442,473,223,465,469,485,345,195,435,447,493,501,518,565,561,538,557,530,542,533,357,422,453,477,229,384,341,274,400,237,393,389,418,201,374,362,205,369,366,217,335,310],[143],[193]],[["ghc",22.916,23.6482]]]587,["Run.o",0.0003,0,0,[[584]]]588,["Main.exe",3.8846,0,0,[[583],[585,582,257,407,412,262,578,252,549,569,280,573,198,505,513,526,427,498,510,522,482,489,554,546,349,461,458,353,441,474,224,466,470,486,346,196,436,448,494,502,517,566,562,537,558,529,541,534,358,423,454,478,230,383,342,275,399,236,392,388,417,202,373,361,204,370,365,216,336,309],[143],[193]],[["ghc",23.6565,27.5353]]]589,["Root",0,0,0,[[586]],[["",27.538,27.538]]]...

Full Screen

Full Screen

test.js

Source:test.js Github

copy

Full Screen

1const path = require('path');2const fs = require('fs');3const pathExists = require('path-exists');4const tempfile = require('tempfile');5const gm = require('gm');6const pify = require('pify');7const parsePNG = require('parse-png');8const fn = require('./index');9describe('android platform', () => {10 test('android - png input', async () => {11 const tempFile = tempfile();12 await fn('fixtures/icon.png', { platform: 'android', dest: tempFile });13 const doesFileExist = await Promise.all([14 pathExists(path.join(tempFile, 'mipmap-ldpi/icon.png')),15 pathExists(path.join(tempFile, 'mipmap-mdpi/icon.png')),16 pathExists(path.join(tempFile, 'mipmap-hdpi/icon.png')),17 pathExists(path.join(tempFile, 'mipmap-xhdpi/icon.png')),18 pathExists(path.join(tempFile, 'mipmap-xxhdpi/icon.png')),19 pathExists(path.join(tempFile, 'mipmap-xxxhdpi/icon.png')),20 ]);21 let doesExist = true;22 doesFileExist.map(item => {23 if (!item) {24 doesExist = false;25 }26 });27 expect(doesExist).toBe(true);28 });29 test('android - svg input', async () => {30 const tempFile = tempfile();31 await fn('fixtures/icon.svg', { platform: 'android', dest: tempFile });32 const doesFileExist = await Promise.all([33 pathExists(path.join(tempFile, 'mipmap-ldpi/icon.png')),34 pathExists(path.join(tempFile, 'mipmap-mdpi/icon.png')),35 pathExists(path.join(tempFile, 'mipmap-hdpi/icon.png')),36 pathExists(path.join(tempFile, 'mipmap-xhdpi/icon.png')),37 pathExists(path.join(tempFile, 'mipmap-xxhdpi/icon.png')),38 pathExists(path.join(tempFile, 'mipmap-xxxhdpi/icon.png')),39 ]);40 let doesExist = true;41 doesFileExist.map(item => {42 if (!item) {43 doesExist = false;44 }45 });46 expect(doesExist).toBe(true);47 });48});49describe('blackberry10 platform', () => {50 test('blackberry10 - png input', async () => {51 const tempFile = tempfile();52 await fn('fixtures/icon.png', { platform: 'blackberry10', dest: tempFile });53 const doesFileExist = await Promise.all([54 pathExists(path.join(tempFile, 'icon-90.png')),55 pathExists(path.join(tempFile, 'icon-96.png')),56 pathExists(path.join(tempFile, 'icon-110.png')),57 pathExists(path.join(tempFile, 'icon-144.png')),58 ]);59 let doesExist = true;60 doesFileExist.map(item => {61 if (!item) {62 doesExist = false;63 }64 });65 expect(doesExist).toBe(true);66 });67 test('blackberry10 - svg input', async () => {68 const tempFile = tempfile();69 await fn('fixtures/icon.svg', { platform: 'blackberry10', dest: tempFile });70 const doesFileExist = await Promise.all([71 pathExists(path.join(tempFile, 'icon-90.png')),72 pathExists(path.join(tempFile, 'icon-96.png')),73 pathExists(path.join(tempFile, 'icon-110.png')),74 pathExists(path.join(tempFile, 'icon-144.png')),75 ]);76 let doesExist = true;77 doesFileExist.map(item => {78 if (!item) {79 doesExist = false;80 }81 });82 expect(doesExist).toBe(true);83 });84});85describe('chrome platform', () => {86 test('chrome - png input', async () => {87 const tempFile = tempfile();88 await fn('fixtures/icon.png', { platform: 'chrome', dest: tempFile });89 const doesFileExist = await Promise.all([90 pathExists(path.join(tempFile, 'icon-16.png')),91 pathExists(path.join(tempFile, 'icon-32.png')),92 pathExists(path.join(tempFile, 'icon-48.png')),93 pathExists(path.join(tempFile, 'icon-96.png')),94 pathExists(path.join(tempFile, 'icon-128.png')),95 ]);96 let doesExist = true;97 doesFileExist.map(item => {98 if (!item) {99 doesExist = false;100 }101 });102 expect(doesExist).toBe(true);103 });104 test('chrome - svg input', async () => {105 const tempFile = tempfile();106 await fn('fixtures/icon.svg', { platform: 'chrome', dest: tempFile });107 const doesFileExist = await Promise.all([108 pathExists(path.join(tempFile, 'icon-16.png')),109 pathExists(path.join(tempFile, 'icon-32.png')),110 pathExists(path.join(tempFile, 'icon-48.png')),111 pathExists(path.join(tempFile, 'icon-96.png')),112 pathExists(path.join(tempFile, 'icon-128.png')),113 ]);114 let doesExist = true;115 doesFileExist.map(item => {116 if (!item) {117 doesExist = false;118 }119 });120 expect(doesExist).toBe(true);121 });122});123describe('firefox platform', () => {124 test('firefox - png input', async () => {125 const tempFile = tempfile();126 await fn('fixtures/icon.png', { platform: 'firefox', dest: tempFile });127 const doesFileExist = await Promise.all([128 pathExists(path.join(tempFile, 'icon-16.png')),129 pathExists(path.join(tempFile, 'icon-32.png')),130 pathExists(path.join(tempFile, 'icon-48.png')),131 pathExists(path.join(tempFile, 'icon-96.png')),132 pathExists(path.join(tempFile, 'icon-128.png')),133 ]);134 let doesExist = true;135 doesFileExist.map(item => {136 if (!item) {137 doesExist = false;138 }139 });140 expect(doesExist).toBe(true);141 });142 test('firefox - svg input', async () => {143 const tempFile = tempfile();144 await fn('fixtures/icon.svg', { platform: 'firefox', dest: tempFile });145 const doesFileExist = await Promise.all([146 pathExists(path.join(tempFile, 'icon-16.png')),147 pathExists(path.join(tempFile, 'icon-32.png')),148 pathExists(path.join(tempFile, 'icon-48.png')),149 pathExists(path.join(tempFile, 'icon-96.png')),150 pathExists(path.join(tempFile, 'icon-128.png')),151 ]);152 let doesExist = true;153 doesFileExist.map(item => {154 if (!item) {155 doesExist = false;156 }157 });158 expect(doesExist).toBe(true);159 });160});161describe('ios platform', () => {162 test('ios - png input', async () => {163 const tempFile = tempfile();164 await fn('fixtures/icon.png', { platform: 'ios', dest: tempFile });165 const doesFileExist = await Promise.all([166 pathExists(path.join(tempFile, 'icon.png')),167 pathExists(path.join(tempFile, 'icon@2x.png')),168 pathExists(path.join(tempFile, 'icon-20.png')),169 pathExists(path.join(tempFile, 'icon-40.png')),170 pathExists(path.join(tempFile, 'icon-40@2x.png')),171 pathExists(path.join(tempFile, 'icon-40@3x.png')),172 pathExists(path.join(tempFile, 'icon-1024.png')),173 pathExists(path.join(tempFile, 'icon-50.png')),174 pathExists(path.join(tempFile, 'icon-50@2x.png')),175 pathExists(path.join(tempFile, 'icon-60.png')),176 pathExists(path.join(tempFile, 'icon-60@2x.png')),177 pathExists(path.join(tempFile, 'icon-60@3x.png')),178 pathExists(path.join(tempFile, 'icon-72.png')),179 pathExists(path.join(tempFile, 'icon-72@2x.png')),180 pathExists(path.join(tempFile, 'icon-76.png')),181 pathExists(path.join(tempFile, 'icon-76@2x.png')),182 pathExists(path.join(tempFile, 'icon-83.5@2x.png')),183 pathExists(path.join(tempFile, 'icon-small.png')),184 pathExists(path.join(tempFile, 'icon-small@2x.png')),185 pathExists(path.join(tempFile, 'icon-small@3x.png')),186 ]);187 let doesExist = true;188 doesFileExist.map(item => {189 if (!item) {190 doesExist = false;191 }192 });193 expect(doesExist).toBe(true);194 });195 test('ios - svg input', async () => {196 const tempFile = tempfile();197 await fn('fixtures/icon.svg', { platform: 'ios', dest: tempFile });198 const doesFileExist = await Promise.all([199 pathExists(path.join(tempFile, 'icon.png')),200 pathExists(path.join(tempFile, 'icon@2x.png')),201 pathExists(path.join(tempFile, 'icon-20.png')),202 pathExists(path.join(tempFile, 'icon-40.png')),203 pathExists(path.join(tempFile, 'icon-40@2x.png')),204 pathExists(path.join(tempFile, 'icon-40@3x.png')),205 pathExists(path.join(tempFile, 'icon-1024.png')),206 pathExists(path.join(tempFile, 'icon-50.png')),207 pathExists(path.join(tempFile, 'icon-50@2x.png')),208 pathExists(path.join(tempFile, 'icon-60.png')),209 pathExists(path.join(tempFile, 'icon-60@2x.png')),210 pathExists(path.join(tempFile, 'icon-60@3x.png')),211 pathExists(path.join(tempFile, 'icon-72.png')),212 pathExists(path.join(tempFile, 'icon-72@2x.png')),213 pathExists(path.join(tempFile, 'icon-76.png')),214 pathExists(path.join(tempFile, 'icon-76@2x.png')),215 pathExists(path.join(tempFile, 'icon-83.5@2x.png')),216 pathExists(path.join(tempFile, 'icon-small.png')),217 pathExists(path.join(tempFile, 'icon-small@2x.png')),218 pathExists(path.join(tempFile, 'icon-small@3x.png')),219 ]);220 let doesExist = true;221 doesFileExist.map(item => {222 if (!item) {223 doesExist = false;224 }225 });226 expect(doesExist).toBe(true);227 });228});229describe('pwa platform', () => {230 test('pwa - png input', async () => {231 const tempFile = tempfile();232 await fn('fixtures/icon.png', { platform: 'pwa', dest: tempFile });233 const doesFileExist = await Promise.all([234 pathExists(path.join(tempFile, 'icon-72x72.png')),235 pathExists(path.join(tempFile, 'icon-96x96.png')),236 pathExists(path.join(tempFile, 'icon-128x128.png')),237 pathExists(path.join(tempFile, 'icon-144x144.png')),238 pathExists(path.join(tempFile, 'icon-152x152.png')),239 pathExists(path.join(tempFile, 'icon-192x192.png')),240 pathExists(path.join(tempFile, 'icon-384x384.png')),241 pathExists(path.join(tempFile, 'icon-512x512.png')),242 ]);243 let doesExist = true;244 doesFileExist.map(item => {245 if (!item) {246 doesExist = false;247 }248 });249 expect(doesExist).toBe(true);250 });251 test('pwa - svg input', async () => {252 const tempFile = tempfile();253 await fn('fixtures/icon.svg', { platform: 'pwa', dest: tempFile });254 const doesFileExist = await Promise.all([255 pathExists(path.join(tempFile, 'icon-72x72.png')),256 pathExists(path.join(tempFile, 'icon-96x96.png')),257 pathExists(path.join(tempFile, 'icon-128x128.png')),258 pathExists(path.join(tempFile, 'icon-144x144.png')),259 pathExists(path.join(tempFile, 'icon-152x152.png')),260 pathExists(path.join(tempFile, 'icon-192x192.png')),261 pathExists(path.join(tempFile, 'icon-384x384.png')),262 pathExists(path.join(tempFile, 'icon-512x512.png')),263 ]);264 let doesExist = true;265 doesFileExist.map(item => {266 if (!item) {267 doesExist = false;268 }269 });270 expect(doesExist).toBe(true);271 });272});273describe('image output size', () => {274 test('output size: 40 - ios - icon-40.png', async () => {275 const tempFile = tempfile();276 await fn('fixtures/icon.png', { platform: 'ios', dest: tempFile });277 const image = gm(path.join(tempFile, 'icon-40.png'));278 const { width, height } = await pify(image.size.bind(image))();279 expect(width).toBe(40);280 expect(height).toBe(40);281 });282 test('output size: 40 - ios - icon-40.svg', async () => {283 const tempFile = tempfile();284 await fn('fixtures/icon.png', { platform: 'ios', dest: tempFile });285 const image = gm(path.join(tempFile, 'icon-40.png'));286 const { width, height } = await pify(image.size.bind(image))();287 expect(width).toBe(40);288 expect(height).toBe(40);289 });290});291describe('transparent corners', () => {292 test('pwa - icon-72.png', async () => {293 const tempFile = tempfile();294 await fn('fixtures/icon.svg', { platform: 'pwa', dest: tempFile, roundedCorners: true });295 const { data } = await parsePNG(fs.readFileSync(path.join(tempFile, 'icon-72x72.png')));296 // Check the first pixel297 expect(data[0]).toBe(0); // R298 expect(data[1]).toBe(0); // G299 expect(data[2]).toBe(0); // B300 expect(data[3]).toBe(0); // A301 });...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var fs = require('fs');2var sinon = require('sinon');3var sinonFs = require('sinon-fs');4var doesFileExist = require('./doesFileExist');5var assert = require('assert');6describe('doesFileExist', function() {7 beforeEach(function() {8 sinonFs.restore();9 });10 it('should return true if file exists', function() {11 sinonFs.expects('existsSync').returns(true);12 assert.equal(doesFileExist(), true);13 });14 it('should return false if file does not exist', function() {15 sinonFs.expects('existsSync').returns(false);16 assert.equal(doesFileExist(), false);17 });18});19var fs = require('fs');20function doesFileExist() {21 return fs.existsSync('test.txt');22}23module.exports = doesFileExist;

Full Screen

Using AI Code Generation

copy

Full Screen

1const sinon = require('sinon');2const fs = require('fs');3const doesFileExist = require('../doesFileExist');4describe('doesFileExist', () => {5 it('should return true if the file exists', () => {6 sinon.stub(fs, 'existsSync').returns(true);7 expect(doesFileExist()).toBe(true);8 });9 it('should return false if the file does not exist', () => {10 sinon.stub(fs, 'existsSync').returns(false);11 expect(doesFileExist()).toBe(false);12 });13});14const fs = require('fs');15const doesFileExist = () => fs.existsSync('test.txt');16module.exports = doesFileExist;17const sinon = require('sinon');18const fs = require('fs');19const doesFileExist = require('../doesFileExist');20describe('doesFileExist', () => {21 it('should return true if the file exists', () => {22 const fsMock = sinon.mock(fs);23 fsMock.expects('existsSync').once().returns(true);24 expect(doesFileExist()).toBe(true);25 });26 it('should return false if the file does not exist', () => {27 const fsMock = sinon.mock(fs);28 fsMock.expects('existsSync').once().returns(false);29 expect(doesFileExist()).toBe(false);30 });31});32const fs = require('fs');33const doesFileExist = () => fs.existsSync('test.txt');34module.exports = doesFileExist;35const sinon = require('sinon');36const fs = require('fs');37const doesFileExist = require('../doesFileExist');

Full Screen

Using AI Code Generation

copy

Full Screen

1var fs = require('fs');2var sinon = require('sinon');3require('sinon-fs');4sinon.stub(fs, 'existsSync').returns(true);5fs.existsSync.restore();6Your name to display (optional):7Your name to display (optional):

Full Screen

Using AI Code Generation

copy

Full Screen

1var fs = require('fs');2var doesFileExist = require('sinon-fs').doesFileExist;3doesFileExist('file.txt', 'utf8', 'r', function(err, exists) {4});5var fs = require('fs');6var doesFileExistSync = require('sinon-fs').doesFileExistSync;7var fs = require('fs');8var readFileSync = require('sinon-fs').readFileSync;9var fs = require('fs');10var readFile = require('sinon-fs').readFile;11readFile('file.txt', 'utf8', 'r', function(err, data) {12});13var fs = require('fs');14var readSync = require('sinon-fs').readSync;15var fs = require('fs');16var read = require('sinon

Full Screen

Using AI Code Generation

copy

Full Screen

1var fs = require('fs');2var sinon = require('sinon');3var assert = require('chai').assert;4describe('sinon file system', function () {5 var sandbox;6 beforeEach(function () {7 sandbox = sinon.sandbox.create();8 });9 afterEach(function () {10 sandbox.restore();11 });12 it('returns true if file exists', function () {13 sandbox.stub(fs, 'exists').yields(true);14 fs.exists('file.txt', function (exists) {15 assert.isTrue(exists);16 });17 });18 it('returns false if file does not exist', function () {19 sandbox.stub(fs, 'exists').yields(false);20 fs.exists('file.txt', function (exists) {21 assert.isFalse(exists);22 });23 });24});25var fs = require('fs');26var sinon = require('sinon');27var assert = require('chai').assert;28describe('sinon file system', function () {29 var sandbox;30 beforeEach(function () {31 sandbox = sinon.sandbox.create();32 });33 afterEach(function () {34 sandbox.restore();35 });36 it('returns true if file exists', function () {37 sandbox.stub(fs, 'exists').yields(true);38 fs.exists('file.txt', function (exists) {39 assert.isTrue(exists);40 });41 });42 it('returns false if file does not exist', function () {43 sandbox.stub(fs, 'exists').yields(false);44 fs.exists('file.txt', function (exists) {45 assert.isFalse(exists);46 });47 });48});49var fs = require('fs');50var sinon = require('sinon');51var assert = require('chai').assert;52describe('sinon file system', function () {53 var sandbox;54 beforeEach(function () {55 sandbox = sinon.sandbox.create();56 });57 afterEach(function () {58 sandbox.restore();59 });60 it('returns true if file exists', function () {61 sandbox.stub(fs, 'exists').yields(true);62 fs.exists('file.txt', function (exists) {63 assert.isTrue(exists);64 });65 });66 it('returns false if file does not exist', function () {67 sandbox.stub(fs, 'exists').yields(false);

Full Screen

Using AI Code Generation

copy

Full Screen

1function doesFileExist(file) {2 return new Promise((resolve, reject) => {3 chrome.fileSystemProvider.onGetMetadataRequested.addListener((e) => {4 if (e.entryPath === file) {5 resolve(true);6 }7 else {8 reject(false);9 }10 });11 chrome.fileSystemProvider.getMetadata({ entryPath: file });12 });13}14doesFileExist('test.txt').then((result) => {15 console.log(result);16}).catch((err) => {17 console.log(err);18});19function doesFileExist(file) {20 return new Promise((resolve, reject) => {21 chrome.fileSystemProvider.onGetMetadataRequested.addListener((e) => {22 if (e.entryPath === file) {23 resolve(true);24 }25 else {26 reject(false);27 }28 });29 chrome.fileSystemProvider.getMetadata({ entryPath: file });30 });31}32doesFileExist('test.txt').then((result) => {33 console.log(result);34}).catch((err) => {35 console.log(err);36});

Full Screen

Using AI Code Generation

copy

Full Screen

1var sinon = require('sinon');2var sinonFs = require('sinon-fs');3var fs = require('fs');4var doesFileExist = sinonFs.expose(fs)['existsSync'];5describe('doesFileExist', function() {6 it('should return true if file exists', function() {7 sinon.stub(fs, 'existsSync').returns(true);8 expect(doesFileExist('foo')).to.be.true;9 });10 it('should return false if file does not exist', function() {11 sinon.stub(fs, 'existsSync').returns(false);12 expect(doesFileExist('foo')).to.be.false;13 });14});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run sinon automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful