{"ScriptPreparationCode":null,"TestCases":[{"Name":"Object","Code":"var FUNCTIONS = {\r\n EMERGENCY: \u0027EMERGENCY\u0027,\r\n CRITICAL: \u0027CRITICAL\u0027,\r\n ERROR: \u0027ERROR\u0027,\r\n ALERT: \u0027ALERT\u0027,\r\n WARNING: \u0027WARNING\u0027,\r\n NOTICE: \u0027NOTICE\u0027,\r\n INFO: \u0027INFO\u0027,\r\n DEBUG: \u0027DEBUG\u0027,\r\n}\r\n\r\nfunction getMethodByObject(method) {\r\n return FUNCTIONS[method]\r\n}\r\n\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027EMERGENCY\u0027)\r\ngetMethodByObject(\u0027ALERT\u0027)\r\ngetMethodByObject(\u0027CRITICAL\u0027)\r\ngetMethodByObject(\u0027ERROR\u0027)\r\ngetMethodByObject(\u0027WARNING\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)\r\ngetMethodByObject(\u0027INFO\u0027)\r\ngetMethodByObject(\u0027DEBUG\u0027)\r\ngetMethodByObject(\u0027NOTICE\u0027)","IsDeferred":false},{"Name":"Switch","Code":"function getMethodBySwitch(method) {\r\n switch (method) {\r\n case \u0027EMERGENCY\u0027:\r\n case \u0027ALERT\u0027:\r\n case \u0027CRITICAL\u0027:\r\n case \u0027ERROR\u0027:\r\n return \u0027error\u0027\r\n case \u0027WARNING\u0027:\r\n return \u0027warn\u0027\r\n case \u0027NOTICE\u0027:\r\n case \u0027INFO\u0027:\r\n return \u0027info\u0027\r\n case \u0027DEBUG\u0027:\r\n return \u0027debug\u0027\r\n default:\r\n return \u0027log\u0027\r\n }\r\n}\r\n\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027EMERGENCY\u0027)\r\ngetMethodBySwitch(\u0027ALERT\u0027)\r\ngetMethodBySwitch(\u0027CRITICAL\u0027)\r\ngetMethodBySwitch(\u0027ERROR\u0027)\r\ngetMethodBySwitch(\u0027WARNING\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)\r\ngetMethodBySwitch(\u0027INFO\u0027)\r\ngetMethodBySwitch(\u0027DEBUG\u0027)\r\ngetMethodBySwitch(\u0027NOTICE\u0027)","IsDeferred":false}]}