* Package: dev-lua/luacheck-0.23.0 * Repository: gentoo * Maintainer: vpayno+gentoo@gmail.com gyakovlev@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux test userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking luacheck-0.23.0.tar.gz to /var/tmp/portage/dev-lua/luacheck-0.23.0/work >>> Source unpacked in /var/tmp/portage/dev-lua/luacheck-0.23.0/work >>> Preparing source in /var/tmp/portage/dev-lua/luacheck-0.23.0/work/luacheck-0.23.0 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-lua/luacheck-0.23.0/work/luacheck-0.23.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-lua/luacheck-0.23.0/work/luacheck-0.23.0 ... >>> Source compiled. >>> Test phase: dev-lua/luacheck-0.23.0 [==========] Running tests from scanned files. [----------] Global test environment setup. [----------] Running tests from spec/bad_whitespace_spec.lua [ RUN ] spec/bad_whitespace_spec.lua @ 8: bad whitespace detection detects lines with only whitespace [ OK ] spec/bad_whitespace_spec.lua @ 8: bad whitespace detection detects lines with only whitespace (14.62 ms) [ RUN ] spec/bad_whitespace_spec.lua @ 15: bad whitespace detection detects trailing whitespace with different warnings code depending on line ending type [ OK ] spec/bad_whitespace_spec.lua @ 15: bad whitespace detection detects trailing whitespace with different warnings code depending on line ending type (0.40 ms) [ RUN ] spec/bad_whitespace_spec.lua @ 24: bad whitespace detection detects spaces followed by tabs [ OK ] spec/bad_whitespace_spec.lua @ 24: bad whitespace detection detects spaces followed by tabs (0.28 ms) [ RUN ] spec/bad_whitespace_spec.lua @ 30: bad whitespace detection does not warn on spaces followed by tabs if the line has only whitespace [ OK ] spec/bad_whitespace_spec.lua @ 30: bad whitespace detection does not warn on spaces followed by tabs if the line has only whitespace (0.20 ms) [ RUN ] spec/bad_whitespace_spec.lua @ 36: bad whitespace detection can detect both trailing whitespace and inconsistent indentation on the same line [ OK ] spec/bad_whitespace_spec.lua @ 36: bad whitespace detection can detect both trailing whitespace and inconsistent indentation on the same line (0.26 ms) [ RUN ] spec/bad_whitespace_spec.lua @ 43: bad whitespace detection handles lack of trailing newline [ OK ] spec/bad_whitespace_spec.lua @ 43: bad whitespace detection handles lack of trailing newline (0.54 ms) [ RUN ] spec/bad_whitespace_spec.lua @ 58: bad whitespace detection provides correct column ranges in presence of two-byte line endings [ OK ] spec/bad_whitespace_spec.lua @ 58: bad whitespace detection provides correct column ranges in presence of two-byte line endings (0.28 ms) [ RUN ] spec/bad_whitespace_spec.lua @ 66: bad whitespace detection provides correct column ranges in presence of utf8 [ OK ] spec/bad_whitespace_spec.lua @ 66: bad whitespace detection provides correct column ranges in presence of utf8 (0.36 ms) [----------] 8 tests from spec/bad_whitespace_spec.lua (19.00 ms total) [----------] Running tests from spec/cache_spec.lua [ RUN ] spec/cache_spec.lua @ 19: cache serialize returns serialized result [ OK ] spec/cache_spec.lua @ 19: cache serialize returns serialized result (0.18 ms) [ RUN ] spec/cache_spec.lua @ 33: cache serialize puts repeating string values into locals [ OK ] spec/cache_spec.lua @ 33: cache serialize puts repeating string values into locals (0.18 ms) [ RUN ] spec/cache_spec.lua @ 48: cache serialize uses at most 52 locals [ OK ] spec/cache_spec.lua @ 48: cache serialize uses at most 52 locals (1.55 ms) [ RUN ] spec/cache_spec.lua @ 94: cache serialize handles error result [ OK ] spec/cache_spec.lua @ 94: cache serialize handles error result (0.15 ms) [ RUN ] spec/cache_spec.lua @ 131: cache update creates new cache [ OK ] spec/cache_spec.lua @ 131: cache update creates new cache (0.34 ms) [ RUN ] spec/cache_spec.lua @ 146: cache update appends new entries [ OK ] spec/cache_spec.lua @ 146: cache update appends new entries (0.46 ms) [ RUN ] spec/cache_spec.lua @ 167: cache update overwrites old entries [ OK ] spec/cache_spec.lua @ 167: cache update overwrites old entries (1.05 ms) [ RUN ] spec/cache_spec.lua @ 191: cache load error handling returns {} on cache with bad version [ OK ] spec/cache_spec.lua @ 191: cache load error handling returns {} on cache with bad version (0.18 ms) [ RUN ] spec/cache_spec.lua @ 195: cache load error handling returns {} on cache without version [ OK ] spec/cache_spec.lua @ 195: cache load error handling returns {} on cache without version (0.19 ms) [ RUN ] spec/cache_spec.lua @ 199: cache load error handling returns nil on cache with bad number of lines [ OK ] spec/cache_spec.lua @ 199: cache load error handling returns nil on cache with bad number of lines (0.18 ms) [ RUN ] spec/cache_spec.lua @ 203: cache load error handling returns nil on cache with bad mtime [ OK ] spec/cache_spec.lua @ 203: cache load error handling returns nil on cache with bad mtime (0.18 ms) [ RUN ] spec/cache_spec.lua @ 207: cache load error handling returns nil on cache with bad result [ OK ] spec/cache_spec.lua @ 207: cache load error handling returns nil on cache with bad result (0.30 ms) [ RUN ] spec/cache_spec.lua @ 254: cache load loading loads {} from non-existent cache [ OK ] spec/cache_spec.lua @ 254: cache load loading loads {} from non-existent cache (0.12 ms) [ RUN ] spec/cache_spec.lua @ 258: cache load loading loads cached results [ OK ] spec/cache_spec.lua @ 258: cache load loading loads cached results (0.40 ms) [ RUN ] spec/cache_spec.lua @ 265: cache load loading does not load results for missing files [ OK ] spec/cache_spec.lua @ 265: cache load loading does not load results for missing files (0.38 ms) [ RUN ] spec/cache_spec.lua @ 269: cache load loading does not load outdated results [ OK ] spec/cache_spec.lua @ 269: cache load loading does not load outdated results (0.22 ms) [----------] 16 tests from spec/cache_spec.lua (29.59 ms total) [----------] Running tests from spec/check_spec.lua [ RUN ] spec/check_spec.lua @ 22: check does not find anything wrong in an empty block [ OK ] spec/check_spec.lua @ 22: check does not find anything wrong in an empty block (0.26 ms) [ RUN ] spec/check_spec.lua @ 26: check considers a variable assigned even if it can't get a value due to short rhs (it still gets nil) [ OK ] spec/check_spec.lua @ 26: check considers a variable assigned even if it can't get a value due to short rhs (it still gets nil) (0.59 ms) [ RUN ] spec/check_spec.lua @ 40: check reports vartype == var when the unused value is not the initial [ OK ] spec/check_spec.lua @ 40: check reports vartype == var when the unused value is not the initial (0.84 ms) [ RUN ] spec/check_spec.lua @ 58: check does not detect unused values in loops [ OK ] spec/check_spec.lua @ 58: check does not detect unused values in loops (0.67 ms) [ RUN ] spec/check_spec.lua @ 71: check detects unused local value referred to from closure in incompatible branch [ OK ] spec/check_spec.lua @ 71: check detects unused local value referred to from closure in incompatible branch (0.72 ms) [ RUN ] spec/check_spec.lua @ 86: check detects unused upvalue value referred to from closure in incompatible branch [ OK ] spec/check_spec.lua @ 86: check detects unused upvalue value referred to from closure in incompatible branch (1.14 ms) [ RUN ] spec/check_spec.lua @ 101: check handles upvalues before infinite loops [ OK ] spec/check_spec.lua @ 101: check handles upvalues before infinite loops (0.80 ms) [ RUN ] spec/check_spec.lua @ 113: check detects redefinition in the same scope [ OK ] spec/check_spec.lua @ 113: check detects redefinition in the same scope (0.82 ms) [ RUN ] spec/check_spec.lua @ 126: check detects redefinition of function arguments [ OK ] spec/check_spec.lua @ 126: check detects redefinition of function arguments (0.61 ms) [ RUN ] spec/check_spec.lua @ 140: check marks redefinition of implicit self [ OK ] spec/check_spec.lua @ 140: check marks redefinition of implicit self (2.10 ms) [ RUN ] spec/check_spec.lua @ 187: check detects shadowing definitions [ OK ] spec/check_spec.lua @ 187: check detects shadowing definitions (0.73 ms) [ RUN ] spec/check_spec.lua @ 209: check detects unused labels [ OK ] spec/check_spec.lua @ 209: check detects unused labels (0.33 ms) [ RUN ] spec/check_spec.lua @ 219: check detects empty statements [ OK ] spec/check_spec.lua @ 219: check detects empty statements (0.86 ms) [ RUN ] spec/check_spec.lua @ 245: check provides correct locations in presence of utf8 [ OK ] spec/check_spec.lua @ 245: check provides correct locations in presence of utf8 (0.38 ms) [ RUN ] spec/check_spec.lua @ 252: check provides inline options, line lengths, and line endings [ OK ] spec/check_spec.lua @ 252: check provides inline options, line lengths, and line endings (1.18 ms) [ RUN ] spec/check_spec.lua @ 296: check emits correct inline option error messages [ OK ] spec/check_spec.lua @ 296: check emits correct inline option error messages (0.62 ms) [ RUN ] spec/check_spec.lua @ 322: check handles argparse sample [ OK ] spec/check_spec.lua @ 322: check handles argparse sample (72.45 ms) [----------] 17 tests from spec/check_spec.lua (104.64 ms total) [----------] Running tests from spec/cli_spec.lua [ RUN ] spec/cli_spec.lua @ 54: cli exists [ OK ] spec/cli_spec.lua @ 54: cli exists (38.41 ms) [ RUN ] spec/cli_spec.lua @ 58: cli handles invalid options [ OK ] spec/cli_spec.lua @ 58: cli handles invalid options (35.78 ms) [ RUN ] spec/cli_spec.lua @ 62: cli works for correct files [ OK ] spec/cli_spec.lua @ 62: cli works for correct files (72.86 ms) [ RUN ] spec/cli_spec.lua @ 71: cli allows measuring performance spec/cli_spec.lua:72: Expected objects to be equal. Passed in: (number) 4 Expected: (number) 0 [ FAILED ] spec/cli_spec.lua @ 71: cli allows measuring performance (35.04 ms) [ RUN ] spec/cli_spec.lua @ 75: cli removes ./ in the beginnings of file names [ OK ] spec/cli_spec.lua @ 75: cli removes ./ in the beginnings of file names (37.09 ms) [ RUN ] spec/cli_spec.lua @ 83: cli allows setting new filename [ OK ] spec/cli_spec.lua @ 83: cli allows setting new filename (38.11 ms) [ RUN ] spec/cli_spec.lua @ 91: cli filters files using --exclude-files [ OK ] spec/cli_spec.lua @ 91: cli filters files using --exclude-files (38.31 ms) [ RUN ] spec/cli_spec.lua @ 99: cli filters files using --include-files [ OK ] spec/cli_spec.lua @ 99: cli filters files using --include-files (40.23 ms) [ RUN ] spec/cli_spec.lua @ 107: cli --exclude-files has priority over --include-files [ OK ] spec/cli_spec.lua @ 107: cli --exclude-files has priority over --include-files (40.27 ms) [ RUN ] spec/cli_spec.lua @ 115: cli works for incorrect files [ OK ] spec/cli_spec.lua @ 115: cli works for incorrect files (75.05 ms) [ RUN ] spec/cli_spec.lua @ 130: cli detects whitespace issues [ OK ] spec/cli_spec.lua @ 130: cli detects whitespace issues (76.80 ms) [ RUN ] spec/cli_spec.lua @ 150: cli works for incorrect patterns in options [ OK ] spec/cli_spec.lua @ 150: cli works for incorrect patterns in options (37.58 ms) [ RUN ] spec/cli_spec.lua @ 156: cli checks stdin when given - [ OK ] spec/cli_spec.lua @ 156: cli checks stdin when given - (37.74 ms) [ RUN ] spec/cli_spec.lua @ 170: cli colors output by default [ OK ] spec/cli_spec.lua @ 170: cli colors output by default (38.35 ms) [ RUN ] spec/cli_spec.lua @ 185: cli suppresses OK output with -q [ OK ] spec/cli_spec.lua @ 185: cli suppresses OK output with -q (75.77 ms) [ RUN ] spec/cli_spec.lua @ 214: cli suppresses warnings output with -qq [ OK ] spec/cli_spec.lua @ 214: cli suppresses warnings output with -qq (39.66 ms) [ RUN ] spec/cli_spec.lua @ 223: cli suppresses file info output with -qqq [ OK ] spec/cli_spec.lua @ 223: cli suppresses file info output with -qqq (40.36 ms) [ RUN ] spec/cli_spec.lua @ 228: cli allows to ignore some types of warnings [ OK ] spec/cli_spec.lua @ 228: cli allows to ignore some types of warnings (111.06 ms) [ RUN ] spec/cli_spec.lua @ 259: cli allows to define additional globals [ OK ] spec/cli_spec.lua @ 259: cli allows to define additional globals (36.52 ms) [ RUN ] spec/cli_spec.lua @ 272: cli allows to set standard globals [ OK ] spec/cli_spec.lua @ 272: cli allows to set standard globals (71.92 ms) [ RUN ] spec/cli_spec.lua @ 298: cli allows to ignore some variables [ OK ] spec/cli_spec.lua @ 298: cli allows to ignore some variables (36.12 ms) [ RUN ] spec/cli_spec.lua @ 310: cli allows to only watch some variables [ OK ] spec/cli_spec.lua @ 310: cli allows to only watch some variables (36.38 ms) [ RUN ] spec/cli_spec.lua @ 320: cli recognizes different types of variables [ OK ] spec/cli_spec.lua @ 320: cli recognizes different types of variables (37.48 ms) [ RUN ] spec/cli_spec.lua @ 338: cli allows to ignore unused arguments [ OK ] spec/cli_spec.lua @ 338: cli allows to ignore unused arguments (36.83 ms) [ RUN ] spec/cli_spec.lua @ 351: cli allows to ignore unused secondary values and variables [ OK ] spec/cli_spec.lua @ 351: cli allows to ignore unused secondary values and variables (74.39 ms) [ RUN ] spec/cli_spec.lua @ 372: cli allows to ignore warnings related to implicit self [ OK ] spec/cli_spec.lua @ 372: cli allows to ignore warnings related to implicit self (36.08 ms) [ RUN ] spec/cli_spec.lua @ 386: cli handles errors gracefully [ OK ] spec/cli_spec.lua @ 386: cli handles errors gracefully (67.85 ms) [ RUN ] spec/cli_spec.lua @ 405: cli expands rockspecs [ OK ] spec/cli_spec.lua @ 405: cli expands rockspecs (37.47 ms) [ RUN ] spec/cli_spec.lua @ 421: cli handles bad rockspecs [ OK ] spec/cli_spec.lua @ 421: cli handles bad rockspecs (33.82 ms) [ RUN ] spec/cli_spec.lua @ 431: cli allows ignoring defined globals [ OK ] spec/cli_spec.lua @ 431: cli allows ignoring defined globals (72.25 ms) [ RUN ] spec/cli_spec.lua @ 452: cli allows restricting scope of defined globals to the file with their definition [ OK ] spec/cli_spec.lua @ 452: cli allows restricting scope of defined globals to the file with their definition (36.58 ms) [ RUN ] spec/cli_spec.lua @ 464: cli allows ignoring globals defined in top level scope [ OK ] spec/cli_spec.lua @ 464: cli allows ignoring globals defined in top level scope (35.56 ms) [ RUN ] spec/cli_spec.lua @ 475: cli detects unused defined globals [ OK ] spec/cli_spec.lua @ 475: cli detects unused defined globals (71.58 ms) [ RUN ] spec/cli_spec.lua @ 497: cli treats `unused global` warnings as `global` type warnings [ OK ] spec/cli_spec.lua @ 497: cli treats `unused global` warnings as `global` type warnings (75.16 ms) [ RUN ] spec/cli_spec.lua @ 515: cli allows ignoring unused defined globals [ OK ] spec/cli_spec.lua @ 515: cli allows ignoring unused defined globals (74.29 ms) [ RUN ] spec/cli_spec.lua @ 530: cli detects flow issues [ OK ] spec/cli_spec.lua @ 530: cli detects flow issues (36.78 ms) [ RUN ] spec/cli_spec.lua @ 545: cli detects redefinitions [ OK ] spec/cli_spec.lua @ 545: cli detects redefinitions (36.54 ms) [ RUN ] spec/cli_spec.lua @ 560: cli detects lines that are too long [ OK ] spec/cli_spec.lua @ 560: cli detects lines that are too long (170.12 ms) [ RUN ] spec/cli_spec.lua @ 616: cli detects issues related to read-only globals [ OK ] spec/cli_spec.lua @ 616: cli detects issues related to read-only globals (38.29 ms) [ RUN ] spec/cli_spec.lua @ 630: cli detects indirect global indexing [ OK ] spec/cli_spec.lua @ 630: cli detects indirect global indexing (36.34 ms) [ RUN ] spec/cli_spec.lua @ 642: cli allows defining fields [ OK ] spec/cli_spec.lua @ 642: cli allows defining fields (37.94 ms) [ RUN ] spec/cli_spec.lua @ 653: cli detects issues related to global fields [ OK ] spec/cli_spec.lua @ 653: cli detects issues related to global fields (86.55 ms) [ RUN ] spec/cli_spec.lua @ 690: cli detects fornums going from #(expr) down to 1 with positive step [ OK ] spec/cli_spec.lua @ 690: cli detects fornums going from #(expr) down to 1 with positive step (38.91 ms) [ RUN ] spec/cli_spec.lua @ 700: cli allows showing warning codes [ OK ] spec/cli_spec.lua @ 700: cli allows showing warning codes (36.75 ms) [ RUN ] spec/cli_spec.lua @ 714: cli allows showing token ranges [ OK ] spec/cli_spec.lua @ 714: cli allows showing token ranges (44.85 ms) [ RUN ] spec/cli_spec.lua @ 737: cli shows correct ranges for files with utf8 [ OK ] spec/cli_spec.lua @ 737: cli shows correct ranges for files with utf8 (37.32 ms) [ RUN ] spec/cli_spec.lua @ 754: cli applies inline options [ OK ] spec/cli_spec.lua @ 754: cli applies inline options (176.51 ms) [ RUN ] spec/cli_spec.lua @ 823: cli inline options can use extended stds [ OK ] spec/cli_spec.lua @ 823: cli inline options can use extended stds (34.06 ms) [ RUN ] spec/cli_spec.lua @ 851: cli caching caches results [ OK ] spec/cli_spec.lua @ 851: cli caching caches results (228.58 ms) [ RUN ] spec/cli_spec.lua @ 989: cli allows using custom formatter [ OK ] spec/cli_spec.lua @ 989: cli allows using custom formatter (36.93 ms) [ RUN ] spec/cli_spec.lua @ 998: cli loads custom formatters relatively to project root [ OK ] spec/cli_spec.lua @ 998: cli loads custom formatters relatively to project root (39.68 ms) [ RUN ] spec/cli_spec.lua @ 1007: cli allows using format options in config [ OK ] spec/cli_spec.lua @ 1007: cli allows using format options in config (78.00 ms) [ RUN ] spec/cli_spec.lua @ 1025: cli has built-in TAP formatter [ OK ] spec/cli_spec.lua @ 1025: cli has built-in TAP formatter (75.86 ms) [ RUN ] spec/cli_spec.lua @ 1051: cli has built-in JUnit formatter [ OK ] spec/cli_spec.lua @ 1051: cli has built-in JUnit formatter (38.02 ms) [ RUN ] spec/cli_spec.lua @ 1081: cli has built-in Visual Studio aware formatter [ OK ] spec/cli_spec.lua @ 1081: cli has built-in Visual Studio aware formatter (35.72 ms) [ RUN ] spec/cli_spec.lua @ 1093: cli has built-in simple warning-per-line formatter [ OK ] spec/cli_spec.lua @ 1093: cli has built-in simple warning-per-line formatter (142.72 ms) [ RUN ] spec/cli_spec.lua @ 1119: cli provides version info [ OK ] spec/cli_spec.lua @ 1119: cli provides version info (33.83 ms) [ RUN ] spec/cli_spec.lua @ 1124: cli expands folders [ OK ] spec/cli_spec.lua @ 1124: cli expands folders (154.16 ms) [ RUN ] spec/cli_spec.lua @ 1128: cli uses --include-files when expanding folders [ OK ] spec/cli_spec.lua @ 1128: cli uses --include-files when expanding folders (38.48 ms) [ RUN ] spec/cli_spec.lua @ 1135: cli config loading uses .luacheckrc in current directory if possible [ OK ] spec/cli_spec.lua @ 1135: cli config loading uses .luacheckrc in current directory if possible (36.50 ms) [ RUN ] spec/cli_spec.lua @ 1150: cli config loading does not use .luacheckrc in current directory with --no-config [ OK ] spec/cli_spec.lua @ 1150: cli config loading does not use .luacheckrc in current directory with --no-config (36.07 ms) [ RUN ] spec/cli_spec.lua @ 1167: cli config loading uses .luacheckrc in upper directory [ OK ] spec/cli_spec.lua @ 1167: cli config loading uses .luacheckrc in upper directory (36.77 ms) [ RUN ] spec/cli_spec.lua @ 1182: cli config loading uses config provided with --config=path [ OK ] spec/cli_spec.lua @ 1182: cli config loading uses config provided with --config=path (36.21 ms) [ RUN ] spec/cli_spec.lua @ 1190: cli config loading uses config when checking stdin [ OK ] spec/cli_spec.lua @ 1190: cli config loading uses config when checking stdin (32.42 ms) [ RUN ] spec/cli_spec.lua @ 1198: cli config loading uses per-file overrides [ OK ] spec/cli_spec.lua @ 1198: cli config loading uses per-file overrides (33.80 ms) [ RUN ] spec/cli_spec.lua @ 1213: cli config loading adds per-file overrides with default stds [ OK ] spec/cli_spec.lua @ 1213: cli config loading adds per-file overrides with default stds (42.65 ms) [ RUN ] spec/cli_spec.lua @ 1278: cli config loading uses new filename when selecting per-file overrides [ OK ] spec/cli_spec.lua @ 1278: cli config loading uses new filename when selecting per-file overrides (35.22 ms) [ RUN ] spec/cli_spec.lua @ 1286: cli config loading uses all overrides prefixing file name [ OK ] spec/cli_spec.lua @ 1286: cli config loading uses all overrides prefixing file name (41.29 ms) [ RUN ] spec/cli_spec.lua @ 1306: cli config loading allows reenabling warnings ignored in config using --enable [ OK ] spec/cli_spec.lua @ 1306: cli config loading allows reenabling warnings ignored in config using --enable (38.96 ms) [ RUN ] spec/cli_spec.lua @ 1323: cli config loading allows using cli-specific options in top level config [ OK ] spec/cli_spec.lua @ 1323: cli config loading allows using cli-specific options in top level config (36.54 ms) [ RUN ] spec/cli_spec.lua @ 1333: cli config loading uses exclude_files option [ OK ] spec/cli_spec.lua @ 1333: cli config loading uses exclude_files option (137.87 ms) [ RUN ] spec/cli_spec.lua @ 1358: cli config loading loads exclude_files option correctly from upper directory [ OK ] spec/cli_spec.lua @ 1358: cli config loading loads exclude_files option correctly from upper directory (136.65 ms) [ RUN ] spec/cli_spec.lua @ 1382: cli config loading combines excluded files from config and cli [ OK ] spec/cli_spec.lua @ 1382: cli config loading combines excluded files from config and cli (133.76 ms) [ RUN ] spec/cli_spec.lua @ 1404: cli config loading allows defining custom stds [ OK ] spec/cli_spec.lua @ 1404: cli config loading allows defining custom stds (136.29 ms) [ RUN ] spec/cli_spec.lua @ 1440: cli config loading allows importing options with require [ OK ] spec/cli_spec.lua @ 1440: cli config loading allows importing options with require (34.23 ms) [ RUN ] spec/cli_spec.lua @ 1459: cli config loading global path uses global path as fallback if --[no-]config is not used [ OK ] spec/cli_spec.lua @ 1459: cli config loading global path uses global path as fallback if --[no-]config is not used (34.72 ms) [ RUN ] spec/cli_spec.lua @ 1467: cli config loading global path detects errors in global path config [ OK ] spec/cli_spec.lua @ 1467: cli config loading global path detects errors in global path config (31.60 ms) [ RUN ] spec/cli_spec.lua @ 1473: cli config loading global path does not use global path config if it is missing [ OK ] spec/cli_spec.lua @ 1473: cli config loading global path does not use global path config if it is missing (33.05 ms) [ RUN ] spec/cli_spec.lua @ 1484: cli config loading global path does not use global path as fallback if --no-default-config is not used [ OK ] spec/cli_spec.lua @ 1484: cli config loading global path does not use global path as fallback if --no-default-config is not used (32.46 ms) [ RUN ] spec/cli_spec.lua @ 1496: cli config loading global path does not use global path as fallback if --config is used [ OK ] spec/cli_spec.lua @ 1496: cli config loading global path does not use global path as fallback if --config is used (35.79 ms) [ RUN ] spec/cli_spec.lua @ 1507: cli config loading global path does not use global path as fallback if --no-config is used [ OK ] spec/cli_spec.lua @ 1507: cli config loading global path does not use global path as fallback if --no-config is used (36.82 ms) [ RUN ] spec/cli_spec.lua @ 1521: cli config error handling raises critical error on config with syntax errors [ OK ] spec/cli_spec.lua @ 1521: cli config error handling raises critical error on config with syntax errors (67.56 ms) [ RUN ] spec/cli_spec.lua @ 1528: cli config error handling raises critical error on non-existent config [ OK ] spec/cli_spec.lua @ 1528: cli config error handling raises critical error on non-existent config (64.94 ms) [ RUN ] spec/cli_spec.lua @ 1535: cli config error handling raises critical error on config with invalid options [ OK ] spec/cli_spec.lua @ 1535: cli config error handling raises critical error on config with invalid options (63.79 ms) [ RUN ] spec/cli_spec.lua @ 1544: cli config overwriting prioritizes CLI options over config [ OK ] spec/cli_spec.lua @ 1544: cli config overwriting prioritizes CLI options over config (34.47 ms) [ RUN ] spec/cli_spec.lua @ 1548: cli config overwriting prioritizes CLI options over config overrides [ OK ] spec/cli_spec.lua @ 1548: cli config overwriting prioritizes CLI options over config overrides (33.01 ms) [ RUN ] spec/cli_spec.lua @ 1552: cli config overwriting concats array-like options from config and CLI [ OK ] spec/cli_spec.lua @ 1552: cli config overwriting concats array-like options from config and CLI (34.40 ms) [----------] 87 tests from spec/cli_spec.lua (5008.24 ms total) [----------] Running tests from spec/config_spec.lua [ RUN ] spec/config_spec.lua @ 26: config has default path [ OK ] spec/config_spec.lua @ 26: config has default path (0.09 ms) [ RUN ] spec/config_spec.lua @ 30: config loads default config [ OK ] spec/config_spec.lua @ 30: config loads default config (2.30 ms) [ RUN ] spec/config_spec.lua @ 44: config works with empty config [ OK ] spec/config_spec.lua @ 44: config works with empty config (0.19 ms) [ RUN ] spec/config_spec.lua @ 62: config loads config from path [ OK ] spec/config_spec.lua @ 62: config loads config from path (2.43 ms) [ RUN ] spec/config_spec.lua @ 84: config returns nil, error on missing config [ OK ] spec/config_spec.lua @ 84: config returns nil, error on missing config (0.20 ms) [ RUN ] spec/config_spec.lua @ 90: config returns nil, error on config with bad syntax [ OK ] spec/config_spec.lua @ 90: config returns nil, error on config with bad syntax (0.43 ms) [ RUN ] spec/config_spec.lua @ 104: config returns nil, error on config with runtime issues [ OK ] spec/config_spec.lua @ 104: config returns nil, error on config with runtime issues (0.34 ms) [ RUN ] spec/config_spec.lua @ 118: config stack_configs returns nil, error on invalid config [ OK ] spec/config_spec.lua @ 118: config stack_configs returns nil, error on invalid config (0.44 ms) [ RUN ] spec/config_spec.lua @ 134: config stack_configs returns nil, error on invalid custom std within config [ OK ] spec/config_spec.lua @ 134: config stack_configs returns nil, error on invalid custom std within config (0.22 ms) [ RUN ] spec/config_spec.lua @ 143: config stack_configs returns nil, error on config with invalid override [ OK ] spec/config_spec.lua @ 143: config stack_configs returns nil, error on config with invalid override (0.72 ms) [ RUN ] spec/config_spec.lua @ 162: config stack_configs handles paths in options from configs loaded relatively [ OK ] spec/config_spec.lua @ 162: config stack_configs handles paths in options from configs loaded relatively (0.88 ms) [----------] 11 tests from spec/config_spec.lua (17.05 ms total) [----------] Running tests from spec/cyclomatic_complexity_spec.lua [ RUN ] spec/cyclomatic_complexity_spec.lua @ 8: cyclomatic complexity detection reports 1 for empty main chunk [ OK ] spec/cyclomatic_complexity_spec.lua @ 8: cyclomatic complexity detection reports 1 for empty main chunk (13.23 ms) [ RUN ] spec/cyclomatic_complexity_spec.lua @ 14: cyclomatic complexity detection reports 1 for functions with no branches [ OK ] spec/cyclomatic_complexity_spec.lua @ 14: cyclomatic complexity detection reports 1 for functions with no branches (0.32 ms) [ RUN ] spec/cyclomatic_complexity_spec.lua @ 28: cyclomatic complexity detection reports 2 for functions with a single if branch [ OK ] spec/cyclomatic_complexity_spec.lua @ 28: cyclomatic complexity detection reports 2 for functions with a single if branch (0.64 ms) [ RUN ] spec/cyclomatic_complexity_spec.lua @ 54: cyclomatic complexity detection reports 2 for functions with a single loop [ OK ] spec/cyclomatic_complexity_spec.lua @ 54: cyclomatic complexity detection reports 2 for functions with a single loop (1.39 ms) [ RUN ] spec/cyclomatic_complexity_spec.lua @ 104: cyclomatic complexity detection reports 2 for functions with a single boolean operator [ OK ] spec/cyclomatic_complexity_spec.lua @ 104: cyclomatic complexity detection reports 2 for functions with a single boolean operator (0.39 ms) [ RUN ] spec/cyclomatic_complexity_spec.lua @ 118: cyclomatic complexity detection provides appropriate names and types for functions [ OK ] spec/cyclomatic_complexity_spec.lua @ 118: cyclomatic complexity detection provides appropriate names and types for functions (1.40 ms) [ RUN ] spec/cyclomatic_complexity_spec.lua @ 150: cyclomatic complexity detection reports correct complexity in complex cases [ OK ] spec/cyclomatic_complexity_spec.lua @ 150: cyclomatic complexity detection reports correct complexity in complex cases (3.97 ms) [----------] 7 tests from spec/cyclomatic_complexity_spec.lua (22.88 ms total) [----------] Running tests from spec/decoder_spec.lua [ RUN ] spec/decoder_spec.lua @ 49: decoder decodes valid codepoints correctly [ OK ] spec/decoder_spec.lua @ 49: decoder decodes valid codepoints correctly (1137.02 ms) [ RUN ] spec/decoder_spec.lua @ 60: decoder falls back to latin1 on invalid utf8 [ OK ] spec/decoder_spec.lua @ 60: decoder falls back to latin1 on invalid utf8 (13.61 ms) [----------] 2 tests from spec/decoder_spec.lua (1155.04 ms total) [----------] Running tests from spec/empty_blocks_spec.lua [ RUN ] spec/empty_blocks_spec.lua @ 8: empty block detection detects empty blocks [ OK ] spec/empty_blocks_spec.lua @ 8: empty block detection detects empty blocks (13.89 ms) [ RUN ] spec/empty_blocks_spec.lua @ 38: empty block detection detects empty blocks in nested blocks and functions [ OK ] spec/empty_blocks_spec.lua @ 38: empty block detection detects empty blocks in nested blocks and functions (1.13 ms) [----------] 2 tests from spec/empty_blocks_spec.lua (15.88 ms total) [----------] Running tests from spec/expand_rockspec_spec.lua [ RUN ] spec/expand_rockspec_spec.lua @ 6: expand_rockspec returns sorted array of lua files related to a rock [ OK ] spec/expand_rockspec_spec.lua @ 6: expand_rockspec returns sorted array of lua files related to a rock (0.24 ms) [ RUN ] spec/expand_rockspec_spec.lua @ 15: expand_rockspec autodetects modules for rockspecs without build table [ OK ] spec/expand_rockspec_spec.lua @ 15: expand_rockspec autodetects modules for rockspecs without build table (0.42 ms) [ RUN ] spec/expand_rockspec_spec.lua @ 23: expand_rockspec autodetects modules for rockspecs without build.modules table [ OK ] spec/expand_rockspec_spec.lua @ 23: expand_rockspec autodetects modules for rockspecs without build.modules table (0.34 ms) [ RUN ] spec/expand_rockspec_spec.lua @ 29: expand_rockspec returns nil, "I/O" for non-existent paths [ OK ] spec/expand_rockspec_spec.lua @ 29: expand_rockspec returns nil, "I/O" for non-existent paths (0.14 ms) [ RUN ] spec/expand_rockspec_spec.lua @ 35: expand_rockspec returns nil, "syntax" for rockspecs with syntax errors [ OK ] spec/expand_rockspec_spec.lua @ 35: expand_rockspec returns nil, "syntax" for rockspecs with syntax errors (0.18 ms) [ RUN ] spec/expand_rockspec_spec.lua @ 41: expand_rockspec returns nil, "runtime" for rockspecs with run-time errors [ OK ] spec/expand_rockspec_spec.lua @ 41: expand_rockspec returns nil, "runtime" for rockspecs with run-time errors (0.21 ms) [----------] 6 tests from spec/expand_rockspec_spec.lua (4.03 ms total) [----------] Running tests from spec/filter_spec.lua [ RUN ] spec/filter_spec.lua @ 31: filter filters warnings by name [ OK ] spec/filter_spec.lua @ 31: filter filters warnings by name (0.79 ms) [ RUN ] spec/filter_spec.lua @ 60: filter removes unused var/value and redefined warnings related to _, unless it's useless [ OK ] spec/filter_spec.lua @ 60: filter removes unused var/value and redefined warnings related to _, unless it's useless (0.75 ms) [ RUN ] spec/filter_spec.lua @ 96: filter filters warnings by type [ OK ] spec/filter_spec.lua @ 96: filter filters warnings by type (1.55 ms) [ RUN ] spec/filter_spec.lua @ 163: filter filters warnings by code and name using patterns [ OK ] spec/filter_spec.lua @ 163: filter filters warnings by code and name using patterns (1.00 ms) [ RUN ] spec/filter_spec.lua @ 199: filter filters unused warnings by subtype [ OK ] spec/filter_spec.lua @ 199: filter filters unused warnings by subtype (1.32 ms) [ RUN ] spec/filter_spec.lua @ 232: filter filters unused warnings related to secondary variables [ OK ] spec/filter_spec.lua @ 232: filter filters unused warnings related to secondary variables (2.86 ms) [ RUN ] spec/filter_spec.lua @ 262: filter filters unused and redefined warnings related to implicit self [ OK ] spec/filter_spec.lua @ 262: filter filters unused and redefined warnings related to implicit self (2.46 ms) [ RUN ] spec/filter_spec.lua @ 292: filter filters defined globals [ OK ] spec/filter_spec.lua @ 292: filter filters defined globals (0.28 ms) [ RUN ] spec/filter_spec.lua @ 317: filter filters standard globals [ OK ] spec/filter_spec.lua @ 317: filter filters standard globals (0.71 ms) [ RUN ] spec/filter_spec.lua @ 341: filter allows defined globals with allow_defined = true [ OK ] spec/filter_spec.lua @ 341: filter allows defined globals with allow_defined = true (0.75 ms) [ RUN ] spec/filter_spec.lua @ 377: filter allows globals defined in top level function scope with allow_defined_top = true [ OK ] spec/filter_spec.lua @ 377: filter allows globals defined in top level function scope with allow_defined_top = true (0.75 ms) [ RUN ] spec/filter_spec.lua @ 414: filter allows globals defined in the same file with module = true [ OK ] spec/filter_spec.lua @ 414: filter allows globals defined in the same file with module = true (0.76 ms) [ RUN ] spec/filter_spec.lua @ 446: filter only allows setting globals defined in the same file with module = true [ OK ] spec/filter_spec.lua @ 446: filter only allows setting globals defined in the same file with module = true (1.34 ms) [ RUN ] spec/filter_spec.lua @ 499: filter using an implicitly defined global from a module marks it as used [ OK ] spec/filter_spec.lua @ 499: filter using an implicitly defined global from a module marks it as used (1.27 ms) [ RUN ] spec/filter_spec.lua @ 531: filter applies inline option events and per-line options [ OK ] spec/filter_spec.lua @ 531: filter applies inline option events and per-line options (3.81 ms) [ RUN ] spec/filter_spec.lua @ 575: filter adds line length warnings [ OK ] spec/filter_spec.lua @ 575: filter adds line length warnings (2.10 ms) [----------] 16 tests from spec/filter_spec.lua (35.17 ms total) [----------] Running tests from spec/format_spec.lua [ RUN ] spec/format_spec.lua @ 8: format returns formatted report [ OK ] spec/format_spec.lua @ 8: format returns formatted report (0.17 ms) [ RUN ] spec/format_spec.lua @ 53: format does not output OK messages with options.quiet >= 1 [ OK ] spec/format_spec.lua @ 53: format does not output OK messages with options.quiet >= 1 (0.15 ms) [ RUN ] spec/format_spec.lua @ 101: format does not output warnings with options.quiet >= 2 [ OK ] spec/format_spec.lua @ 101: format does not output warnings with options.quiet >= 2 (0.13 ms) [ RUN ] spec/format_spec.lua @ 133: format does not output file info with options.quiet == 3 [ OK ] spec/format_spec.lua @ 133: format does not output file info with options.quiet == 3 (0.11 ms) [ RUN ] spec/format_spec.lua @ 161: format colors output by default [ OK ] spec/format_spec.lua @ 161: format colors output by default (0.24 ms) [----------] 5 tests from spec/format_spec.lua (14.64 ms total) [----------] Running tests from spec/fs_spec.lua [ RUN ] spec/fs_spec.lua @ 7: fs is_dir returns true for directories [ OK ] spec/fs_spec.lua @ 7: fs is_dir returns true for directories (0.08 ms) [ RUN ] spec/fs_spec.lua @ 11: fs is_dir returns false for files [ OK ] spec/fs_spec.lua @ 11: fs is_dir returns false for files (0.09 ms) [ RUN ] spec/fs_spec.lua @ 15: fs is_dir returns false for non-existent paths [ OK ] spec/fs_spec.lua @ 15: fs is_dir returns false for non-existent paths (0.09 ms) [ RUN ] spec/fs_spec.lua @ 21: fs is_file returns true for files [ OK ] spec/fs_spec.lua @ 21: fs is_file returns true for files (0.09 ms) [ RUN ] spec/fs_spec.lua @ 25: fs is_file returns false for directories [ OK ] spec/fs_spec.lua @ 25: fs is_file returns false for directories (0.09 ms) [ RUN ] spec/fs_spec.lua @ 29: fs is_file returns false for non-existent paths [ OK ] spec/fs_spec.lua @ 29: fs is_file returns false for non-existent paths (0.09 ms) [ RUN ] spec/fs_spec.lua @ 35: fs extract_files returns sorted list of files in a directory matching pattern [ OK ] spec/fs_spec.lua @ 35: fs extract_files returns sorted list of files in a directory matching pattern (0.33 ms) [ RUN ] spec/fs_spec.lua @ 45: fs get_mtime returns modification time as a number [ OK ] spec/fs_spec.lua @ 45: fs get_mtime returns modification time as a number (0.09 ms) [ RUN ] spec/fs_spec.lua @ 49: fs get_mtime returns nil for non-existent files [ OK ] spec/fs_spec.lua @ 49: fs get_mtime returns nil for non-existent files (0.09 ms) [ RUN ] spec/fs_spec.lua @ 55: fs get_current_dir returns absolute path to current directory with trailing directory separator [ OK ] spec/fs_spec.lua @ 55: fs get_current_dir returns absolute path to current directory with trailing directory separator (0.19 ms) [ RUN ] spec/fs_spec.lua @ 65: fs find_file finds file in a directory [ OK ] spec/fs_spec.lua @ 65: fs find_file finds file in a directory (0.13 ms) [ RUN ] spec/fs_spec.lua @ 70: fs find_file finds file in a parent directory [ OK ] spec/fs_spec.lua @ 70: fs find_file finds file in a parent directory (0.14 ms) [ RUN ] spec/fs_spec.lua @ 75: fs find_file returns nil if can't find file [ OK ] spec/fs_spec.lua @ 75: fs find_file returns nil if can't find file (0.19 ms) [----------] 13 tests from spec/fs_spec.lua (5.93 ms total) [----------] Running tests from spec/globals_spec.lua [ RUN ] spec/globals_spec.lua @ 8: global detection detects global set [ OK ] spec/globals_spec.lua @ 8: global detection detects global set (13.27 ms) [ RUN ] spec/globals_spec.lua @ 16: global detection detects global set in nested functions [ OK ] spec/globals_spec.lua @ 16: global detection detects global set in nested functions (0.39 ms) [ RUN ] spec/globals_spec.lua @ 27: global detection detects global access in multi-assignments [ OK ] spec/globals_spec.lua @ 27: global detection detects global access in multi-assignments (0.34 ms) [ RUN ] spec/globals_spec.lua @ 38: global detection detects global access in self swap [ OK ] spec/globals_spec.lua @ 38: global detection detects global access in self swap (0.33 ms) [ RUN ] spec/globals_spec.lua @ 48: global detection detects global mutation [ OK ] spec/globals_spec.lua @ 48: global detection detects global mutation (0.27 ms) [ RUN ] spec/globals_spec.lua @ 56: global detection detects indirect global field access [ OK ] spec/globals_spec.lua @ 56: global detection detects indirect global field access (0.50 ms) [ RUN ] spec/globals_spec.lua @ 82: global detection detects indirect global field mutation [ OK ] spec/globals_spec.lua @ 82: global detection detects indirect global field mutation (0.46 ms) [ RUN ] spec/globals_spec.lua @ 108: global detection provides indexing information for warnings related to global fields [ OK ] spec/globals_spec.lua @ 108: global detection provides indexing information for warnings related to global fields (0.65 ms) [----------] 8 tests from spec/globals_spec.lua (18.19 ms total) [----------] Running tests from spec/globbing_spec.lua [ RUN ] spec/globbing_spec.lua @ 14: globbing match returns true on literal match [ OK ] spec/globbing_spec.lua @ 14: globbing match returns true on literal match (0.15 ms) [ RUN ] spec/globbing_spec.lua @ 18: globbing match returns true on literal match after normalization [ OK ] spec/globbing_spec.lua @ 18: globbing match returns true on literal match after normalization (0.13 ms) [ RUN ] spec/globbing_spec.lua @ 22: globbing match returns false for on literal mismatch [ OK ] spec/globbing_spec.lua @ 22: globbing match returns false for on literal mismatch (0.14 ms) [ RUN ] spec/globbing_spec.lua @ 26: globbing match accepts subdirectory matches [ OK ] spec/globbing_spec.lua @ 26: globbing match accepts subdirectory matches (0.14 ms) [ RUN ] spec/globbing_spec.lua @ 30: globbing match understands wildcards [ OK ] spec/globbing_spec.lua @ 30: globbing match understands wildcards (0.55 ms) [ RUN ] spec/globbing_spec.lua @ 37: globbing match understands optional characters [ OK ] spec/globbing_spec.lua @ 37: globbing match understands optional characters (0.56 ms) [ RUN ] spec/globbing_spec.lua @ 45: globbing match understands ranges and classes [ OK ] spec/globbing_spec.lua @ 45: globbing match understands ranges and classes (0.35 ms) [ RUN ] spec/globbing_spec.lua @ 51: globbing match accepts closing bracket as first class character [ OK ] spec/globbing_spec.lua @ 51: globbing match accepts closing bracket as first class character (0.32 ms) [ RUN ] spec/globbing_spec.lua @ 57: globbing match accepts dash as first or last class character [ OK ] spec/globbing_spec.lua @ 57: globbing match accepts dash as first or last class character (0.32 ms) [ RUN ] spec/globbing_spec.lua @ 63: globbing match understands negation [ OK ] spec/globbing_spec.lua @ 63: globbing match understands negation (0.39 ms) [ RUN ] spec/globbing_spec.lua @ 69: globbing match understands recursive globbing using ** [ OK ] spec/globbing_spec.lua @ 69: globbing match understands recursive globbing using ** (0.96 ms) [----------] 11 tests from spec/globbing_spec.lua (8.01 ms total) [----------] Running tests from spec/lexer_spec.lua [ RUN ] spec/lexer_spec.lua @ 49: lexer parses EOS correctly [ OK ] spec/lexer_spec.lua @ 49: lexer parses EOS correctly (0.12 ms) [ RUN ] spec/lexer_spec.lua @ 53: lexer parses names correctly [ OK ] spec/lexer_spec.lua @ 53: lexer parses names correctly (0.22 ms) [ RUN ] spec/lexer_spec.lua @ 60: lexer parses keywords correctly [ OK ] spec/lexer_spec.lua @ 60: lexer parses keywords correctly (0.15 ms) [ RUN ] spec/lexer_spec.lua @ 65: lexer parses operators and special tokens correctly [ OK ] spec/lexer_spec.lua @ 65: lexer parses operators and special tokens correctly (0.69 ms) [ RUN ] spec/lexer_spec.lua @ 84: lexer parses single character tokens correctly [ OK ] spec/lexer_spec.lua @ 84: lexer parses single character tokens correctly (0.21 ms) [ RUN ] spec/lexer_spec.lua @ 91: lexer when parsing short strings parses empty short strings correctly [ OK ] spec/lexer_spec.lua @ 91: lexer when parsing short strings parses empty short strings correctly (0.15 ms) [ RUN ] spec/lexer_spec.lua @ 96: lexer when parsing short strings parses short strings containing quotation marks correctly [ OK ] spec/lexer_spec.lua @ 96: lexer when parsing short strings parses short strings containing quotation marks correctly (0.14 ms) [ RUN ] spec/lexer_spec.lua @ 101: lexer when parsing short strings parses simple short strings correctly [ OK ] spec/lexer_spec.lua @ 101: lexer when parsing short strings parses simple short strings correctly (0.12 ms) [ RUN ] spec/lexer_spec.lua @ 105: lexer when parsing short strings parses simple escape sequences correctly [ OK ] spec/lexer_spec.lua @ 105: lexer when parsing short strings parses simple escape sequences correctly (0.22 ms) [ RUN ] spec/lexer_spec.lua @ 111: lexer when parsing short strings parses escaped newline correctly [ OK ] spec/lexer_spec.lua @ 111: lexer when parsing short strings parses escaped newline correctly (0.15 ms) [ RUN ] spec/lexer_spec.lua @ 120: lexer when parsing short strings parses \z correctly [ OK ] spec/lexer_spec.lua @ 120: lexer when parsing short strings parses \z correctly (0.25 ms) [ RUN ] spec/lexer_spec.lua @ 130: lexer when parsing short strings parses decimal escape sequences correctly [ OK ] spec/lexer_spec.lua @ 130: lexer when parsing short strings parses decimal escape sequences correctly (0.27 ms) [ RUN ] spec/lexer_spec.lua @ 141: lexer when parsing short strings parses hexadecimal escape sequences correctly [ OK ] spec/lexer_spec.lua @ 141: lexer when parsing short strings parses hexadecimal escape sequences correctly (0.38 ms) [ RUN ] spec/lexer_spec.lua @ 167: lexer when parsing short strings parses utf-8 escape sequences correctly [ OK ] spec/lexer_spec.lua @ 167: lexer when parsing short strings parses utf-8 escape sequences correctly (0.68 ms) [ RUN ] spec/lexer_spec.lua @ 208: lexer when parsing short strings detects unknown escape sequences [ OK ] spec/lexer_spec.lua @ 208: lexer when parsing short strings detects unknown escape sequences (0.12 ms) [ RUN ] spec/lexer_spec.lua @ 212: lexer when parsing short strings detects unfinished strings [ OK ] spec/lexer_spec.lua @ 212: lexer when parsing short strings detects unfinished strings (0.20 ms) [ RUN ] spec/lexer_spec.lua @ 221: lexer when parsing long strings parses empty long strings correctly [ OK ] spec/lexer_spec.lua @ 221: lexer when parsing long strings parses empty long strings correctly (0.15 ms) [ RUN ] spec/lexer_spec.lua @ 226: lexer when parsing long strings parses simple long strings correctly [ OK ] spec/lexer_spec.lua @ 226: lexer when parsing long strings parses simple long strings correctly (0.16 ms) [ RUN ] spec/lexer_spec.lua @ 231: lexer when parsing long strings skips first newline [ OK ] spec/lexer_spec.lua @ 231: lexer when parsing long strings skips first newline (0.16 ms) [ RUN ] spec/lexer_spec.lua @ 236: lexer when parsing long strings ignores closing brackets of unrelated length [ OK ] spec/lexer_spec.lua @ 236: lexer when parsing long strings ignores closing brackets of unrelated length (0.16 ms) [ RUN ] spec/lexer_spec.lua @ 241: lexer when parsing long strings detects invalid opening brackets [ OK ] spec/lexer_spec.lua @ 241: lexer when parsing long strings detects invalid opening brackets (0.15 ms) [ RUN ] spec/lexer_spec.lua @ 246: lexer when parsing long strings detects unfinished long strings [ OK ] spec/lexer_spec.lua @ 246: lexer when parsing long strings detects unfinished long strings (0.16 ms) [ RUN ] spec/lexer_spec.lua @ 253: lexer when parsing numbers parses decimal integers correctly [ OK ] spec/lexer_spec.lua @ 253: lexer when parsing numbers parses decimal integers correctly (0.15 ms) [ RUN ] spec/lexer_spec.lua @ 258: lexer when parsing numbers parses hexadecimal integers correctly [ OK ] spec/lexer_spec.lua @ 258: lexer when parsing numbers parses hexadecimal integers correctly (0.22 ms) [ RUN ] spec/lexer_spec.lua @ 265: lexer when parsing numbers parses decimal floats correctly [ OK ] spec/lexer_spec.lua @ 265: lexer when parsing numbers parses decimal floats correctly (0.19 ms) [ RUN ] spec/lexer_spec.lua @ 271: lexer when parsing numbers parses hexadecimal floats correctly [ OK ] spec/lexer_spec.lua @ 271: lexer when parsing numbers parses hexadecimal floats correctly (0.41 ms) [ RUN ] spec/lexer_spec.lua @ 278: lexer when parsing numbers parses decimal floats with exponent correctly [ OK ] spec/lexer_spec.lua @ 278: lexer when parsing numbers parses decimal floats with exponent correctly (0.83 ms) [ RUN ] spec/lexer_spec.lua @ 290: lexer when parsing numbers parses hexadecimal floats with exponent correctly [ OK ] spec/lexer_spec.lua @ 290: lexer when parsing numbers parses hexadecimal floats with exponent correctly (1.02 ms) [ RUN ] spec/lexer_spec.lua @ 303: lexer when parsing numbers parses 64 bits cdata literals correctly [ OK ] spec/lexer_spec.lua @ 303: lexer when parsing numbers parses 64 bits cdata literals correctly (1.12 ms) [ RUN ] spec/lexer_spec.lua @ 318: lexer when parsing numbers parses complex cdata literals correctly [ OK ] spec/lexer_spec.lua @ 318: lexer when parsing numbers parses complex cdata literals correctly (0.59 ms) [ RUN ] spec/lexer_spec.lua @ 328: lexer parses short comments correctly [ OK ] spec/lexer_spec.lua @ 328: lexer parses short comments correctly (0.71 ms) [ RUN ] spec/lexer_spec.lua @ 335: lexer parses long comments correctly [ OK ] spec/lexer_spec.lua @ 335: lexer parses long comments correctly (0.60 ms) [ RUN ] spec/lexer_spec.lua @ 342: lexer provides correct location info [ OK ] spec/lexer_spec.lua @ 342: lexer provides correct location info (0.62 ms) [ RUN ] spec/lexer_spec.lua @ 374: lexer provides correct location info for errors [ OK ] spec/lexer_spec.lua @ 374: lexer provides correct location info for errors (0.89 ms) [ RUN ] spec/lexer_spec.lua @ 424: lexer parses minified source correctly [ OK ] spec/lexer_spec.lua @ 424: lexer parses minified source correctly (0.49 ms) [ RUN ] spec/lexer_spec.lua @ 447: lexer handles argparse sample [ OK ] spec/lexer_spec.lua @ 447: lexer handles argparse sample (21.33 ms) [----------] 36 tests from spec/lexer_spec.lua (47.45 ms total) [----------] Running tests from spec/linearize_spec.lua [ RUN ] spec/linearize_spec.lua @ 77: linearize when handling post-parse syntax errors detects gotos without labels [ OK ] spec/linearize_spec.lua @ 77: linearize when handling post-parse syntax errors detects gotos without labels (11.59 ms) [ RUN ] spec/linearize_spec.lua @ 82: linearize when handling post-parse syntax errors detects break outside loops [ OK ] spec/linearize_spec.lua @ 82: linearize when handling post-parse syntax errors detects break outside loops (0.33 ms) [ RUN ] spec/linearize_spec.lua @ 89: linearize when handling post-parse syntax errors detects duplicate labels [ OK ] spec/linearize_spec.lua @ 89: linearize when handling post-parse syntax errors detects duplicate labels (0.18 ms) [ RUN ] spec/linearize_spec.lua @ 95: linearize when handling post-parse syntax errors detects varargs outside vararg functions [ OK ] spec/linearize_spec.lua @ 95: linearize when handling post-parse syntax errors detects varargs outside vararg functions (0.42 ms) [ RUN ] spec/linearize_spec.lua @ 104: linearize when linearizing flow linearizes empty source correctly [ OK ] spec/linearize_spec.lua @ 104: linearize when linearizing flow linearizes empty source correctly (0.17 ms) [ RUN ] spec/linearize_spec.lua @ 108: linearize when linearizing flow linearizes do-end blocks correctly [ OK ] spec/linearize_spec.lua @ 108: linearize when linearizing flow linearizes do-end blocks correctly (0.25 ms) [ RUN ] spec/linearize_spec.lua @ 118: linearize when linearizing flow linearizes loops correctly [ OK ] spec/linearize_spec.lua @ 118: linearize when linearizing flow linearizes loops correctly (1.03 ms) [ RUN ] spec/linearize_spec.lua @ 173: linearize when linearizing flow linearizes loops with literal condition correctly [ OK ] spec/linearize_spec.lua @ 173: linearize when linearizing flow linearizes loops with literal condition correctly (0.62 ms) [ RUN ] spec/linearize_spec.lua @ 217: linearize when linearizing flow linearizes nested loops and breaks correctly [ OK ] spec/linearize_spec.lua @ 217: linearize when linearizing flow linearizes nested loops and breaks correctly (0.60 ms) [ RUN ] spec/linearize_spec.lua @ 262: linearize when linearizing flow linearizes if correctly [ OK ] spec/linearize_spec.lua @ 262: linearize when linearizing flow linearizes if correctly (0.49 ms) [ RUN ] spec/linearize_spec.lua @ 290: linearize when linearizing flow linearizes if with literal condition correctly [ OK ] spec/linearize_spec.lua @ 290: linearize when linearizing flow linearizes if with literal condition correctly (0.46 ms) [ RUN ] spec/linearize_spec.lua @ 317: linearize when linearizing flow linearizes gotos correctly [ OK ] spec/linearize_spec.lua @ 317: linearize when linearizing flow linearizes gotos correctly (0.46 ms) [ RUN ] spec/linearize_spec.lua @ 350: linearize when registering values registers values in empty chunk correctly [ OK ] spec/linearize_spec.lua @ 350: linearize when registering values registers values in empty chunk correctly (0.19 ms) [ RUN ] spec/linearize_spec.lua @ 355: linearize when registering values registers values in assignments correctly [ OK ] spec/linearize_spec.lua @ 355: linearize when registering values registers values in assignments correctly (0.32 ms) [ RUN ] spec/linearize_spec.lua @ 364: linearize when registering values registers empty values correctly [ OK ] spec/linearize_spec.lua @ 364: linearize when registering values registers empty values correctly (0.35 ms) [ RUN ] spec/linearize_spec.lua @ 373: linearize when registering values registers function values as of type func [ OK ] spec/linearize_spec.lua @ 373: linearize when registering values registers function values as of type func (0.28 ms) [ RUN ] spec/linearize_spec.lua @ 380: linearize when registering values registers overwritten args and counters as of type var [ OK ] spec/linearize_spec.lua @ 380: linearize when registering values registers overwritten args and counters as of type var (0.35 ms) [ RUN ] spec/linearize_spec.lua @ 388: linearize when registering values registers groups of secondary values [ OK ] spec/linearize_spec.lua @ 388: linearize when registering values registers groups of secondary values (0.45 ms) [ RUN ] spec/linearize_spec.lua @ 397: linearize when registering values marks groups of secondary values used if one of values is put into global or index [ OK ] spec/linearize_spec.lua @ 397: linearize when registering values marks groups of secondary values used if one of values is put into global or index (0.32 ms) [----------] 19 tests from spec/linearize_spec.lua (23.37 ms total) [----------] Running tests from spec/luacheck_spec.lua [ RUN ] spec/luacheck_spec.lua @ 19: luacheck is an alias of luacheck.check_files [ OK ] spec/luacheck_spec.lua @ 19: luacheck is an alias of luacheck.check_files (4.75 ms) [ RUN ] spec/luacheck_spec.lua @ 31: luacheck panics on bad files [ OK ] spec/luacheck_spec.lua @ 31: luacheck panics on bad files (0.15 ms) [ RUN ] spec/luacheck_spec.lua @ 38: luacheck panics on bad options [ OK ] spec/luacheck_spec.lua @ 38: luacheck panics on bad options (0.36 ms) [ RUN ] spec/luacheck_spec.lua @ 50: luacheck works on empty list [ OK ] spec/luacheck_spec.lua @ 50: luacheck works on empty list (0.11 ms) [ RUN ] spec/luacheck_spec.lua @ 58: luacheck works on files [ OK ] spec/luacheck_spec.lua @ 58: luacheck works on files (2.44 ms) [ RUN ] spec/luacheck_spec.lua @ 101: luacheck uses options [ OK ] spec/luacheck_spec.lua @ 101: luacheck uses options (2.74 ms) [ RUN ] spec/luacheck_spec.lua @ 137: luacheck uses option overrides [ OK ] spec/luacheck_spec.lua @ 137: luacheck uses option overrides (3.63 ms) [ RUN ] spec/luacheck_spec.lua @ 177: check_strings panics on bad strings [ OK ] spec/luacheck_spec.lua @ 177: check_strings panics on bad strings (0.18 ms) [ RUN ] spec/luacheck_spec.lua @ 184: check_strings panics on bad options [ OK ] spec/luacheck_spec.lua @ 184: check_strings panics on bad options (0.27 ms) [ RUN ] spec/luacheck_spec.lua @ 194: check_strings works on empty list [ OK ] spec/luacheck_spec.lua @ 194: check_strings works on empty list (0.13 ms) [ RUN ] spec/luacheck_spec.lua @ 202: check_strings works on strings [ OK ] spec/luacheck_spec.lua @ 202: check_strings works on strings (1.21 ms) [ RUN ] spec/luacheck_spec.lua @ 222: check_strings supports comments in inline options [ OK ] spec/luacheck_spec.lua @ 222: check_strings supports comments in inline options (1.14 ms) [ RUN ] spec/luacheck_spec.lua @ 236: check_strings provides correct location info for warnings [ OK ] spec/luacheck_spec.lua @ 236: check_strings provides correct location info for warnings (1.60 ms) [ RUN ] spec/luacheck_spec.lua @ 289: check_strings provides correct location info for bad inline options [ OK ] spec/luacheck_spec.lua @ 289: check_strings provides correct location info for bad inline options (1.28 ms) [ RUN ] spec/luacheck_spec.lua @ 326: check_strings provides correct location info for syntax errors [ OK ] spec/luacheck_spec.lua @ 326: check_strings provides correct location info for syntax errors (1.19 ms) [ RUN ] spec/luacheck_spec.lua @ 398: check_strings uses options [ OK ] spec/luacheck_spec.lua @ 398: check_strings uses options (1.21 ms) [ RUN ] spec/luacheck_spec.lua @ 413: check_strings ignores tables with .fatal field [ OK ] spec/luacheck_spec.lua @ 413: check_strings ignores tables with .fatal field (1.04 ms) [ RUN ] spec/luacheck_spec.lua @ 432: get_report panics on bad argument [ OK ] spec/luacheck_spec.lua @ 432: get_report panics on bad argument (0.14 ms) [ RUN ] spec/luacheck_spec.lua @ 437: get_report returns a table [ OK ] spec/luacheck_spec.lua @ 437: get_report returns a table (0.28 ms) [ RUN ] spec/luacheck_spec.lua @ 441: get_report returns a table with single error event on syntax error [ OK ] spec/luacheck_spec.lua @ 441: get_report returns a table with single error event on syntax error (0.22 ms) [ RUN ] spec/luacheck_spec.lua @ 448: process_reports panics on bad reports [ OK ] spec/luacheck_spec.lua @ 448: process_reports panics on bad reports (0.12 ms) [ RUN ] spec/luacheck_spec.lua @ 453: process_reports panics on bad options [ OK ] spec/luacheck_spec.lua @ 453: process_reports panics on bad options (0.27 ms) [ RUN ] spec/luacheck_spec.lua @ 463: process_reports processes reports [ OK ] spec/luacheck_spec.lua @ 463: process_reports processes reports (1.21 ms) [ RUN ] spec/luacheck_spec.lua @ 479: process_reports uses options [ OK ] spec/luacheck_spec.lua @ 479: process_reports uses options (0.64 ms) [ RUN ] spec/luacheck_spec.lua @ 505: get_message panics on bad events [ OK ] spec/luacheck_spec.lua @ 505: get_message panics on bad events (0.13 ms) [ RUN ] spec/luacheck_spec.lua @ 510: get_message returns message for an event [ OK ] spec/luacheck_spec.lua @ 510: get_message returns message for an event (0.51 ms) [----------] 26 tests from spec/luacheck_spec.lua (49.47 ms total) [----------] Running tests from spec/options_spec.lua [ RUN ] spec/options_spec.lua @ 5: options validate returns true if options are empty [ OK ] spec/options_spec.lua @ 5: options validate returns true if options are empty (0.10 ms) [ RUN ] spec/options_spec.lua @ 9: options validate returns true if options are valid [ OK ] spec/options_spec.lua @ 9: options validate returns true if options are valid (0.12 ms) [ RUN ] spec/options_spec.lua @ 17: options validate returns false and an error message if options are invalid [ OK ] spec/options_spec.lua @ 17: options validate returns false and an error message if options are invalid (0.70 ms) [ RUN ] spec/options_spec.lua @ 81: options normalize applies default values [ OK ] spec/options_spec.lua @ 81: options normalize applies default values (2.91 ms) [ RUN ] spec/options_spec.lua @ 93: options normalize considers simple boolean options [ OK ] spec/options_spec.lua @ 93: options normalize considers simple boolean options (0.82 ms) [ RUN ] spec/options_spec.lua @ 109: options normalize considers opts.std and opts.compat [ OK ] spec/options_spec.lua @ 109: options normalize considers opts.std and opts.compat (0.18 ms) [ RUN ] spec/options_spec.lua @ 125: options normalize allows compound std unions [ OK ] spec/options_spec.lua @ 125: options normalize allows compound std unions (3.20 ms) [ RUN ] spec/options_spec.lua @ 137: options normalize allows std addition [ OK ] spec/options_spec.lua @ 137: options normalize allows std addition (2.76 ms) [ RUN ] spec/options_spec.lua @ 155: options normalize considers read-only and regular globals [ OK ] spec/options_spec.lua @ 155: options normalize considers read-only and regular globals (2.89 ms) [ RUN ] spec/options_spec.lua @ 179: options normalize considers read-only and regular field definitions [ OK ] spec/options_spec.lua @ 179: options normalize considers read-only and regular field definitions (0.54 ms) [ RUN ] spec/options_spec.lua @ 210: options normalize considers macros, ignore, enable and only [ OK ] spec/options_spec.lua @ 210: options normalize considers macros, ignore, enable and only (2.01 ms) [----------] 11 tests from spec/options_spec.lua (27.72 ms total) [----------] Running tests from spec/parser_spec.lua [ RUN ] spec/parser_spec.lua @ 55: parser parses empty source correctly [ OK ] spec/parser_spec.lua @ 55: parser parses empty source correctly (0.16 ms) [ RUN ] spec/parser_spec.lua @ 59: parser does not allow extra ending keywords [ OK ] spec/parser_spec.lua @ 59: parser does not allow extra ending keywords (0.16 ms) [ RUN ] spec/parser_spec.lua @ 63: parser parses return statement correctly [ OK ] spec/parser_spec.lua @ 63: parser parses return statement correctly (0.49 ms) [ RUN ] spec/parser_spec.lua @ 78: parser parses labels correctly [ OK ] spec/parser_spec.lua @ 78: parser parses labels correctly (0.38 ms) [ RUN ] spec/parser_spec.lua @ 85: parser parses goto correctly [ OK ] spec/parser_spec.lua @ 85: parser parses goto correctly (0.30 ms) [ RUN ] spec/parser_spec.lua @ 94: parser parses break correctly [ OK ] spec/parser_spec.lua @ 94: parser parses break correctly (0.22 ms) [ RUN ] spec/parser_spec.lua @ 99: parser parses do end correctly [ OK ] spec/parser_spec.lua @ 99: parser parses do end correctly (0.42 ms) [ RUN ] spec/parser_spec.lua @ 114: parser parses while do end correctly [ OK ] spec/parser_spec.lua @ 114: parser parses while do end correctly (0.74 ms) [ RUN ] spec/parser_spec.lua @ 139: parser parses repeat until correctly [ OK ] spec/parser_spec.lua @ 139: parser parses repeat until correctly (0.56 ms) [ RUN ] spec/parser_spec.lua @ 162: parser when parsing if parses if then end correctly [ OK ] spec/parser_spec.lua @ 162: parser when parsing if parses if then end correctly (0.62 ms) [ RUN ] spec/parser_spec.lua @ 186: parser when parsing if parses if then else end correctly [ OK ] spec/parser_spec.lua @ 186: parser when parsing if parses if then else end correctly (0.57 ms) [ RUN ] spec/parser_spec.lua @ 206: parser when parsing if parses if then elseif then end correctly [ OK ] spec/parser_spec.lua @ 206: parser when parsing if parses if then elseif then end correctly (0.58 ms) [ RUN ] spec/parser_spec.lua @ 227: parser when parsing if parses if then elseif then else end correctly [ OK ] spec/parser_spec.lua @ 227: parser when parsing if parses if then elseif then else end correctly (0.42 ms) [ RUN ] spec/parser_spec.lua @ 243: parser when parsing for parses fornum correctly [ OK ] spec/parser_spec.lua @ 243: parser when parsing for parses fornum correctly (1.04 ms) [ RUN ] spec/parser_spec.lua @ 284: parser when parsing for parses fornum with step correctly [ OK ] spec/parser_spec.lua @ 284: parser when parsing for parses fornum with step correctly (0.31 ms) [ RUN ] spec/parser_spec.lua @ 298: parser when parsing for parses forin correctly [ OK ] spec/parser_spec.lua @ 298: parser when parsing for parses forin correctly (0.48 ms) [ RUN ] spec/parser_spec.lua @ 327: parser when parsing functions parses simple function correctly [ OK ] spec/parser_spec.lua @ 327: parser when parsing functions parses simple function correctly (1.06 ms) [ RUN ] spec/parser_spec.lua @ 372: parser when parsing functions parses simple function with arguments correctly [ OK ] spec/parser_spec.lua @ 372: parser when parsing functions parses simple function with arguments correctly (1.02 ms) [ RUN ] spec/parser_spec.lua @ 413: parser when parsing functions parses field function correctly [ OK ] spec/parser_spec.lua @ 413: parser when parsing functions parses field function correctly (0.59 ms) [ RUN ] spec/parser_spec.lua @ 439: parser when parsing functions parses method function correctly [ OK ] spec/parser_spec.lua @ 439: parser when parsing functions parses method function correctly (0.54 ms) [ RUN ] spec/parser_spec.lua @ 463: parser when parsing local declarations parses simple local declaration correctly [ OK ] spec/parser_spec.lua @ 463: parser when parsing local declarations parses simple local declaration correctly (0.67 ms) [ RUN ] spec/parser_spec.lua @ 495: parser when parsing local declarations parses local declaration with assignment correctly [ OK ] spec/parser_spec.lua @ 495: parser when parsing local declarations parses local declaration with assignment correctly (0.76 ms) [ RUN ] spec/parser_spec.lua @ 534: parser when parsing local declarations parses local function declaration correctly [ OK ] spec/parser_spec.lua @ 534: parser when parsing local declarations parses local function declaration correctly (0.38 ms) [ RUN ] spec/parser_spec.lua @ 552: parser when parsing assignments parses single target assignment correctly [ OK ] spec/parser_spec.lua @ 552: parser when parsing assignments parses single target assignment correctly (1.01 ms) [ RUN ] spec/parser_spec.lua @ 599: parser when parsing assignments parses multi assignment correctly [ OK ] spec/parser_spec.lua @ 599: parser when parsing assignments parses multi assignment correctly (0.74 ms) [ RUN ] spec/parser_spec.lua @ 637: parser when parsing expression statements parses calls correctly [ OK ] spec/parser_spec.lua @ 637: parser when parsing expression statements parses calls correctly (1.48 ms) [ RUN ] spec/parser_spec.lua @ 689: parser when parsing expression statements parses method calls correctly [ OK ] spec/parser_spec.lua @ 689: parser when parsing expression statements parses method calls correctly (1.27 ms) [ RUN ] spec/parser_spec.lua @ 737: parser when parsing expressions parses singleton expressions correctly [ OK ] spec/parser_spec.lua @ 737: parser when parsing expressions parses singleton expressions correctly (0.72 ms) [ RUN ] spec/parser_spec.lua @ 748: parser when parsing expressions parses table constructors correctly [ OK ] spec/parser_spec.lua @ 748: parser when parsing expressions parses table constructors correctly (1.80 ms) [ RUN ] spec/parser_spec.lua @ 801: parser when parsing expressions parses simple expressions correctly [ OK ] spec/parser_spec.lua @ 801: parser when parsing expressions parses simple expressions correctly (0.60 ms) [ RUN ] spec/parser_spec.lua @ 828: parser when parsing expressions handles operator precedence correctly [ OK ] spec/parser_spec.lua @ 828: parser when parsing expressions handles operator precedence correctly (0.77 ms) [ RUN ] spec/parser_spec.lua @ 882: parser when parsing multiple statements considers semicolons and comments no-op statements [ OK ] spec/parser_spec.lua @ 882: parser when parsing multiple statements considers semicolons and comments no-op statements (0.22 ms) [ RUN ] spec/parser_spec.lua @ 891: parser when parsing multiple statements does not allow statements after return [ OK ] spec/parser_spec.lua @ 891: parser when parsing multiple statements does not allow statements after return (0.66 ms) [ RUN ] spec/parser_spec.lua @ 908: parser when parsing multiple statements parses nested statements correctly [ OK ] spec/parser_spec.lua @ 908: parser when parsing multiple statements parses nested statements correctly (0.94 ms) [ RUN ] spec/parser_spec.lua @ 1021: parser indentation-based missing until/end location guessing provides a better location on the same indentation level for missing end [ OK ] spec/parser_spec.lua @ 1021: parser indentation-based missing until/end location guessing provides a better location on the same indentation level for missing end (2.37 ms) [ RUN ] spec/parser_spec.lua @ 1110: parser indentation-based missing until/end location guessing provides a better location on a lower indentation level for missing end [ OK ] spec/parser_spec.lua @ 1110: parser indentation-based missing until/end location guessing provides a better location on a lower indentation level for missing end (0.54 ms) [ RUN ] spec/parser_spec.lua @ 1132: parser indentation-based missing until/end location guessing provides a better location for various configurations of if statements [ OK ] spec/parser_spec.lua @ 1132: parser indentation-based missing until/end location guessing provides a better location for various configurations of if statements (1.50 ms) [ RUN ] spec/parser_spec.lua @ 1185: parser indentation-based missing until/end location guessing reports the first guess location outside complete blocks [ OK ] spec/parser_spec.lua @ 1185: parser indentation-based missing until/end location guessing reports the first guess location outside complete blocks (0.55 ms) [ RUN ] spec/parser_spec.lua @ 1211: parser indentation-based missing until/end location guessing does not report blocks with different closing token comparing to original error [ OK ] spec/parser_spec.lua @ 1211: parser indentation-based missing until/end location guessing does not report blocks with different closing token comparing to original error (0.62 ms) [ RUN ] spec/parser_spec.lua @ 1244: parser indentation-based missing until/end location guessing does not report tokens on the same line as the innermost block opening token [ OK ] spec/parser_spec.lua @ 1244: parser indentation-based missing until/end location guessing does not report tokens on the same line as the innermost block opening token (0.34 ms) [ RUN ] spec/parser_spec.lua @ 1258: parser provides correct location info [ OK ] spec/parser_spec.lua @ 1258: parser provides correct location info (0.51 ms) [ RUN ] spec/parser_spec.lua @ 1339: parser provides correct location info for labels [ OK ] spec/parser_spec.lua @ 1339: parser provides correct location info for labels (0.14 ms) [ RUN ] spec/parser_spec.lua @ 1352: parser provides correct location info for statements starting with expressions [ OK ] spec/parser_spec.lua @ 1352: parser provides correct location info for statements starting with expressions (0.25 ms) [ RUN ] spec/parser_spec.lua @ 1387: parser provides correct location info for conditions [ OK ] spec/parser_spec.lua @ 1387: parser provides correct location info for conditions (0.14 ms) [ RUN ] spec/parser_spec.lua @ 1400: parser provides correct location info for table keys [ OK ] spec/parser_spec.lua @ 1400: parser provides correct location info for table keys (0.21 ms) [ RUN ] spec/parser_spec.lua @ 1422: parser provides correct error location info [ OK ] spec/parser_spec.lua @ 1422: parser provides correct error location info (0.32 ms) [ RUN ] spec/parser_spec.lua @ 1437: parser provides correct error location info for EOF with no endline [ OK ] spec/parser_spec.lua @ 1437: parser provides correct error location info for EOF with no endline (0.19 ms) [ RUN ] spec/parser_spec.lua @ 1444: parser providing misc information provides short comments correctly [ OK ] spec/parser_spec.lua @ 1444: parser providing misc information provides short comments correctly (0.18 ms) [ RUN ] spec/parser_spec.lua @ 1456: parser providing misc information provides lines with code correctly [ OK ] spec/parser_spec.lua @ 1456: parser providing misc information provides lines with code correctly (0.26 ms) [ RUN ] spec/parser_spec.lua @ 1475: parser providing misc information provides line ending types correctly [ OK ] spec/parser_spec.lua @ 1475: parser providing misc information provides line ending types correctly (0.28 ms) [----------] 50 tests from spec/parser_spec.lua (45.90 ms total) [----------] Running tests from spec/resolve_locals_spec.lua [ RUN ] spec/resolve_locals_spec.lua @ 38: resolve_locals when resolving values resolves values in linear cases [ OK ] spec/resolve_locals_spec.lua @ 38: resolve_locals when resolving values resolves values in linear cases (14.31 ms) [ RUN ] spec/resolve_locals_spec.lua @ 46: resolve_locals when resolving values resolves values after ifs [ OK ] spec/resolve_locals_spec.lua @ 46: resolve_locals when resolving values resolves values after ifs (1.03 ms) [ RUN ] spec/resolve_locals_spec.lua @ 79: resolve_locals when resolving values resolves values after loops [ OK ] spec/resolve_locals_spec.lua @ 79: resolve_locals when resolving values resolves values after loops (1.21 ms) [ RUN ] spec/resolve_locals_spec.lua @ 114: resolve_locals when resolving upvalues resolves set upvalues naively [ OK ] spec/resolve_locals_spec.lua @ 114: resolve_locals when resolving upvalues resolves set upvalues naively (0.48 ms) [ RUN ] spec/resolve_locals_spec.lua @ 129: resolve_locals when resolving upvalues naively determines where closure is live [ OK ] spec/resolve_locals_spec.lua @ 129: resolve_locals when resolving upvalues naively determines where closure is live (0.49 ms) [ RUN ] spec/resolve_locals_spec.lua @ 145: resolve_locals when resolving upvalues naively determines where closure is live in loops [ OK ] spec/resolve_locals_spec.lua @ 145: resolve_locals when resolving upvalues naively determines where closure is live in loops (0.51 ms) [----------] 6 tests from spec/resolve_locals_spec.lua (19.99 ms total) [----------] Running tests from spec/reversed_fornum_loops_spec.lua [ RUN ] spec/reversed_fornum_loops_spec.lua @ 8: reversed fornum loop detection does not detect anything wrong if not going down from #(expr) [ OK ] spec/reversed_fornum_loops_spec.lua @ 8: reversed fornum loop detection does not detect anything wrong if not going down from #(expr) (15.18 ms) [ RUN ] spec/reversed_fornum_loops_spec.lua @ 16: reversed fornum loop detection does not detect anything wrong if limit may be greater than 1 [ OK ] spec/reversed_fornum_loops_spec.lua @ 16: reversed fornum loop detection does not detect anything wrong if limit may be greater than 1 (0.60 ms) [ RUN ] spec/reversed_fornum_loops_spec.lua @ 28: reversed fornum loop detection does not detect anything wrong if step may be negative [ OK ] spec/reversed_fornum_loops_spec.lua @ 28: reversed fornum loop detection does not detect anything wrong if step may be negative (0.61 ms) [ RUN ] spec/reversed_fornum_loops_spec.lua @ 40: reversed fornum loop detection detects reversed loops going from #(expr) to limit less than or equal to 1 [ OK ] spec/reversed_fornum_loops_spec.lua @ 40: reversed fornum loop detection detects reversed loops going from #(expr) to limit less than or equal to 1 (0.86 ms) [ RUN ] spec/reversed_fornum_loops_spec.lua @ 60: reversed fornum loop detection detects reversed loops in nested statements and functions [ OK ] spec/reversed_fornum_loops_spec.lua @ 60: reversed fornum loop detection detects reversed loops in nested statements and functions (1.36 ms) [----------] 5 tests from spec/reversed_fornum_loops_spec.lua (20.12 ms total) [----------] Running tests from spec/rock2/spec/rock2_spec.lua [----------] 0 tests from spec/rock2/spec/rock2_spec.lua (0.05 ms total) [----------] Running tests from spec/standards_spec.lua [ RUN ] spec/standards_spec.lua @ 5: standards validate_std_table returns false and an error message if argument table has wrong field types [ OK ] spec/standards_spec.lua @ 5: standards validate_std_table returns false and an error message if argument table has wrong field types (0.20 ms) [ RUN ] spec/standards_spec.lua @ 15: standards validate_std_table returns false and an error message if argument table has invalid definitions as values [ OK ] spec/standards_spec.lua @ 15: standards validate_std_table returns false and an error message if argument table has invalid definitions as values (0.14 ms) [ RUN ] spec/standards_spec.lua @ 21: standards validate_std_table returns false and an error message if argument table has invalid names as values [ OK ] spec/standards_spec.lua @ 21: standards validate_std_table returns false and an error message if argument table has invalid names as values (0.14 ms) [ RUN ] spec/standards_spec.lua @ 27: standards validate_std_table returns false and an error message if definition tables have wrong field types [ OK ] spec/standards_spec.lua @ 27: standards validate_std_table returns false and an error message if definition tables have wrong field types (0.20 ms) [ RUN ] spec/standards_spec.lua @ 38: standards validate_std_table detects invalid nested definitions [ OK ] spec/standards_spec.lua @ 38: standards validate_std_table detects invalid nested definitions (0.14 ms) [ RUN ] spec/standards_spec.lua @ 44: standards validate_std_table returns true if argument std table is valid [ OK ] spec/standards_spec.lua @ 44: standards validate_std_table returns true if argument std table is valid (0.16 ms) [ RUN ] spec/standards_spec.lua @ 54: standards add_std_table adds two empty stds [ OK ] spec/standards_spec.lua @ 54: standards add_std_table adds two empty stds (0.14 ms) [ RUN ] spec/standards_spec.lua @ 91: standards add_std_table when merging trees merges in a tree [ OK ] spec/standards_spec.lua @ 91: standards add_std_table when merging trees merges in a tree (0.16 ms) [ RUN ] spec/standards_spec.lua @ 109: standards add_std_table when merging trees merges in a tree and overwrites fields with overwrite = true [ OK ] spec/standards_spec.lua @ 109: standards add_std_table when merging trees merges in a tree and overwrites fields with overwrite = true (0.16 ms) [ RUN ] spec/standards_spec.lua @ 127: standards add_std_table when merging trees can ignore top-level array part of std [ OK ] spec/standards_spec.lua @ 127: standards add_std_table when merging trees can ignore top-level array part of std (0.16 ms) [ RUN ] spec/standards_spec.lua @ 147: standards overwrite_field adds definition of a field if it does not exist [ OK ] spec/standards_spec.lua @ 147: standards overwrite_field adds definition of a field if it does not exist (0.13 ms) [ RUN ] spec/standards_spec.lua @ 167: standards overwrite_field overwrites existing definitions [ OK ] spec/standards_spec.lua @ 167: standards overwrite_field overwrites existing definitions (0.13 ms) [ RUN ] spec/standards_spec.lua @ 193: standards remove_field removes definition of a field if it exists [ OK ] spec/standards_spec.lua @ 193: standards remove_field removes definition of a field if it exists (0.13 ms) [ RUN ] spec/standards_spec.lua @ 218: standards remove_field does nothing of definition does not exist already [ OK ] spec/standards_spec.lua @ 218: standards remove_field does nothing of definition does not exist already (0.14 ms) [ RUN ] spec/standards_spec.lua @ 244: standards finalize annotates nodes without writable fields with deep_read_only = true [ OK ] spec/standards_spec.lua @ 244: standards finalize annotates nodes without writable fields with deep_read_only = true (0.15 ms) [ RUN ] spec/standards_spec.lua @ 281: standards def_fields returns a definition table containing empty fields with given names [ OK ] spec/standards_spec.lua @ 281: standards def_fields returns a definition table containing empty fields with given names (0.12 ms) [----------] 16 tests from spec/standards_spec.lua (8.24 ms total) [----------] Running tests from spec/unbalanced_assignments_spec.lua [ RUN ] spec/unbalanced_assignments_spec.lua @ 8: unbalanced assignment detection detects unbalanced assignments [ OK ] spec/unbalanced_assignments_spec.lua @ 8: unbalanced assignment detection detects unbalanced assignments (16.16 ms) [ RUN ] spec/unbalanced_assignments_spec.lua @ 22: unbalanced assignment detection detects unbalanced assignments in nested blocks and functions [ OK ] spec/unbalanced_assignments_spec.lua @ 22: unbalanced assignment detection detects unbalanced assignments in nested blocks and functions (1.71 ms) [----------] 2 tests from spec/unbalanced_assignments_spec.lua (18.88 ms total) [----------] Running tests from spec/uninit_accesses_spec.lua [ RUN ] spec/uninit_accesses_spec.lua @ 8: uninitalized access detection detects accessing uninitialized variables [ OK ] spec/uninit_accesses_spec.lua @ 8: uninitalized access detection detects accessing uninitialized variables (23.74 ms) [ RUN ] spec/uninit_accesses_spec.lua @ 24: uninitalized access detection detects accessing uninitialized variables in unreachable functions [ OK ] spec/uninit_accesses_spec.lua @ 24: uninitalized access detection detects accessing uninitialized variables in unreachable functions (0.92 ms) [ RUN ] spec/uninit_accesses_spec.lua @ 47: uninitalized access detection detects mutating uninitialized variables [ OK ] spec/uninit_accesses_spec.lua @ 47: uninitalized access detection detects mutating uninitialized variables (0.52 ms) [ RUN ] spec/uninit_accesses_spec.lua @ 63: uninitalized access detection detects accessing uninitialized variables in nested functions [ OK ] spec/uninit_accesses_spec.lua @ 63: uninitalized access detection detects accessing uninitialized variables in nested functions (0.71 ms) [ RUN ] spec/uninit_accesses_spec.lua @ 81: uninitalized access detection handles accesses with no reaching values [ OK ] spec/uninit_accesses_spec.lua @ 81: uninitalized access detection handles accesses with no reaching values (0.42 ms) [ RUN ] spec/uninit_accesses_spec.lua @ 90: uninitalized access detection handles upvalue accesses with no reaching values [ OK ] spec/uninit_accesses_spec.lua @ 90: uninitalized access detection handles upvalue accesses with no reaching values (0.54 ms) [ RUN ] spec/uninit_accesses_spec.lua @ 101: uninitalized access detection handles upvalue accesses with no reaching values in a nested function [ OK ] spec/uninit_accesses_spec.lua @ 101: uninitalized access detection handles upvalue accesses with no reaching values in a nested function (0.63 ms) [ RUN ] spec/uninit_accesses_spec.lua @ 114: uninitalized access detection does not detect accessing unitialized variables incorrectly in loops [ OK ] spec/uninit_accesses_spec.lua @ 114: uninitalized access detection does not detect accessing unitialized variables incorrectly in loops (0.45 ms) [----------] 8 tests from spec/uninit_accesses_spec.lua (30.17 ms total) [----------] Running tests from spec/unreachable_code_spec.lua [ RUN ] spec/unreachable_code_spec.lua @ 8: unreachable code detection detects unreachable code [ OK ] spec/unreachable_code_spec.lua @ 8: unreachable code detection detects unreachable code (14.36 ms) [ RUN ] spec/unreachable_code_spec.lua @ 37: unreachable code detection detects unreachable code with literal conditions [ OK ] spec/unreachable_code_spec.lua @ 37: unreachable code detection detects unreachable code with literal conditions (0.82 ms) [ RUN ] spec/unreachable_code_spec.lua @ 68: unreachable code detection detects unreachable expressions [ OK ] spec/unreachable_code_spec.lua @ 68: unreachable code detection detects unreachable expressions (0.63 ms) [ RUN ] spec/unreachable_code_spec.lua @ 88: unreachable code detection detects unreachable functions [ OK ] spec/unreachable_code_spec.lua @ 88: unreachable code detection detects unreachable functions (0.41 ms) [ RUN ] spec/unreachable_code_spec.lua @ 98: unreachable code detection detects unreachable code in nested function [ OK ] spec/unreachable_code_spec.lua @ 98: unreachable code detection detects unreachable code in nested function (0.48 ms) [ RUN ] spec/unreachable_code_spec.lua @ 111: unreachable code detection detects unreachable code in unreachable nested function [ OK ] spec/unreachable_code_spec.lua @ 111: unreachable code detection detects unreachable code in unreachable nested function (0.54 ms) [----------] 6 tests from spec/unreachable_code_spec.lua (18.87 ms total) [----------] Running tests from spec/unused_fields_spec.lua [ RUN ] spec/unused_fields_spec.lua @ 8: unused field detection detects unused fields in table literals [ OK ] spec/unused_fields_spec.lua @ 8: unused field detection detects unused fields in table literals (13.79 ms) [ RUN ] spec/unused_fields_spec.lua @ 33: unused field detection detects unused fields in nested table literals [ OK ] spec/unused_fields_spec.lua @ 33: unused field detection detects unused fields in nested table literals (0.45 ms) [----------] 2 tests from spec/unused_fields_spec.lua (15.09 ms total) [----------] Running tests from spec/unused_locals_spec.lua [ RUN ] spec/unused_locals_spec.lua @ 8: unused locals detection does not find anything wrong in used locals [ OK ] spec/unused_locals_spec.lua @ 8: unused locals detection does not find anything wrong in used locals (13.12 ms) [ RUN ] spec/unused_locals_spec.lua @ 19: unused locals detection detects unused locals [ OK ] spec/unused_locals_spec.lua @ 19: unused locals detection detects unused locals (0.40 ms) [ RUN ] spec/unused_locals_spec.lua @ 32: unused locals detection detects useless local _ variable [ OK ] spec/unused_locals_spec.lua @ 32: unused locals detection detects useless local _ variable (0.67 ms) [ RUN ] spec/unused_locals_spec.lua @ 55: unused locals detection reports unused function with forward declaration as variable, not value [ OK ] spec/unused_locals_spec.lua @ 55: unused locals detection reports unused function with forward declaration as variable, not value (0.34 ms) [ RUN ] spec/unused_locals_spec.lua @ 63: unused locals detection detects unused locals from function arguments [ OK ] spec/unused_locals_spec.lua @ 63: unused locals detection detects unused locals from function arguments (0.33 ms) [ RUN ] spec/unused_locals_spec.lua @ 73: unused locals detection detects unused implicit self [ OK ] spec/unused_locals_spec.lua @ 73: unused locals detection detects unused implicit self (0.37 ms) [ RUN ] spec/unused_locals_spec.lua @ 85: unused locals detection detects unused locals from loops [ OK ] spec/unused_locals_spec.lua @ 85: unused locals detection detects unused locals from loops (0.44 ms) [ RUN ] spec/unused_locals_spec.lua @ 95: unused locals detection detects unused values [ OK ] spec/unused_locals_spec.lua @ 95: unused locals detection detects unused values (0.62 ms) [ RUN ] spec/unused_locals_spec.lua @ 116: unused locals detection does not provide overwriting location if value can reach end of scope [ OK ] spec/unused_locals_spec.lua @ 116: unused locals detection does not provide overwriting location if value can reach end of scope (0.56 ms) [ RUN ] spec/unused_locals_spec.lua @ 133: unused locals detection does not provide overwriting location if the value overwrites itself [ OK ] spec/unused_locals_spec.lua @ 133: unused locals detection does not provide overwriting location if the value overwrites itself (0.47 ms) [ RUN ] spec/unused_locals_spec.lua @ 146: unused locals detection does not detect unused value when it and a closure using it can live together [ OK ] spec/unused_locals_spec.lua @ 146: unused locals detection does not detect unused value when it and a closure using it can live together (0.46 ms) [ RUN ] spec/unused_locals_spec.lua @ 155: unused locals detection does not consider value assigned to upvalue as unused if it is accessed in another closure [ OK ] spec/unused_locals_spec.lua @ 155: unused locals detection does not consider value assigned to upvalue as unused if it is accessed in another closure (0.64 ms) [ RUN ] spec/unused_locals_spec.lua @ 165: unused locals detection does not consider a variable initialized if it can't get a value due to short rhs [ OK ] spec/unused_locals_spec.lua @ 165: unused locals detection does not consider a variable initialized if it can't get a value due to short rhs (0.38 ms) [ RUN ] spec/unused_locals_spec.lua @ 173: unused locals detection considers a variable initialized if short rhs ends with potential multivalue [ OK ] spec/unused_locals_spec.lua @ 173: unused locals detection considers a variable initialized if short rhs ends with potential multivalue (0.52 ms) [ RUN ] spec/unused_locals_spec.lua @ 186: unused locals detection reports unused variable as secondary if it is assigned together with a used one [ OK ] spec/unused_locals_spec.lua @ 186: unused locals detection reports unused variable as secondary if it is assigned together with a used one (0.45 ms) [ RUN ] spec/unused_locals_spec.lua @ 197: unused locals detection reports unused value as secondary if it is assigned together with a used one [ OK ] spec/unused_locals_spec.lua @ 197: unused locals detection reports unused value as secondary if it is assigned together with a used one (0.94 ms) [ RUN ] spec/unused_locals_spec.lua @ 218: unused locals detection detects variable that is mutated but never accessed [ OK ] spec/unused_locals_spec.lua @ 218: unused locals detection detects variable that is mutated but never accessed (1.28 ms) [ RUN ] spec/unused_locals_spec.lua @ 255: unused locals detection detects values that are mutated but never accessed [ OK ] spec/unused_locals_spec.lua @ 255: unused locals detection detects values that are mutated but never accessed (1.43 ms) [ RUN ] spec/unused_locals_spec.lua @ 281: unused locals detection detects unset variables [ OK ] spec/unused_locals_spec.lua @ 281: unused locals detection detects unset variables (0.28 ms) [ RUN ] spec/unused_locals_spec.lua @ 292: unused recurisve function detection detects unused recursive functions [ OK ] spec/unused_locals_spec.lua @ 292: unused recurisve function detection detects unused recursive functions (0.53 ms) [ RUN ] spec/unused_locals_spec.lua @ 302: unused recurisve function detection handles functions defined without a local value [ OK ] spec/unused_locals_spec.lua @ 302: unused recurisve function detection handles functions defined without a local value (0.39 ms) [ RUN ] spec/unused_locals_spec.lua @ 308: unused recurisve function detection detects unused mutually recursive functions [ OK ] spec/unused_locals_spec.lua @ 308: unused recurisve function detection detects unused mutually recursive functions (0.78 ms) [ RUN ] spec/unused_locals_spec.lua @ 325: unused recurisve function detection detects unused mutually recursive functions as values [ OK ] spec/unused_locals_spec.lua @ 325: unused recurisve function detection detects unused mutually recursive functions as values (0.97 ms) [ RUN ] spec/unused_locals_spec.lua @ 344: unused recurisve function detection does not incorrectly detect unused recursive functions inside unused functions [ OK ] spec/unused_locals_spec.lua @ 344: unused recurisve function detection does not incorrectly detect unused recursive functions inside unused functions (0.69 ms) [ RUN ] spec/unused_locals_spec.lua @ 356: unused recurisve function detection does not incorrectly detect unused recursive functions used by an unused recursive function [ OK ] spec/unused_locals_spec.lua @ 356: unused recurisve function detection does not incorrectly detect unused recursive functions used by an unused recursive function (1.04 ms) [----------] 25 tests from spec/unused_locals_spec.lua (33.23 ms total) [----------] Running tests from spec/utils_spec.lua [ RUN ] spec/utils_spec.lua @ 5: utils read_file returns contents of a file [ OK ] spec/utils_spec.lua @ 5: utils read_file returns contents of a file (0.19 ms) [ RUN ] spec/utils_spec.lua @ 9: utils read_file removes UTF-8 BOM [ OK ] spec/utils_spec.lua @ 9: utils read_file removes UTF-8 BOM (0.17 ms) [ RUN ] spec/utils_spec.lua @ 13: utils read_file returns nil for non-existent paths [ OK ] spec/utils_spec.lua @ 13: utils read_file returns nil for non-existent paths (0.09 ms) [ RUN ] spec/utils_spec.lua @ 17: utils read_file returns nil for directories [ OK ] spec/utils_spec.lua @ 17: utils read_file returns nil for directories (0.14 ms) [ RUN ] spec/utils_spec.lua @ 23: utils load loads function in an environment [ OK ] spec/utils_spec.lua @ 23: utils load loads function in an environment (0.12 ms) [ RUN ] spec/utils_spec.lua @ 29: utils load returns nil on syntax error [ OK ] spec/utils_spec.lua @ 29: utils load returns nil on syntax error (0.09 ms) [ RUN ] spec/utils_spec.lua @ 35: utils load_config loads config from a file and returns it [ OK ] spec/utils_spec.lua @ 35: utils load_config loads config from a file and returns it (0.16 ms) [ RUN ] spec/utils_spec.lua @ 39: utils load_config passes second argument as environment [ OK ] spec/utils_spec.lua @ 39: utils load_config passes second argument as environment (0.16 ms) [ RUN ] spec/utils_spec.lua @ 47: utils load_config returns nil, "I/O" for non-existent paths [ OK ] spec/utils_spec.lua @ 47: utils load_config returns nil, "I/O" for non-existent paths (0.12 ms) [ RUN ] spec/utils_spec.lua @ 53: utils load_config returns nil, "syntax" for configs with syntax errors [ OK ] spec/utils_spec.lua @ 53: utils load_config returns nil, "syntax" for configs with syntax errors (0.18 ms) [ RUN ] spec/utils_spec.lua @ 59: utils load_config returns nil, "runtime" for configs with run-time errors [ OK ] spec/utils_spec.lua @ 59: utils load_config returns nil, "runtime" for configs with run-time errors (0.19 ms) [ RUN ] spec/utils_spec.lua @ 67: utils array_to_set converts array to set and returns it [ OK ] spec/utils_spec.lua @ 67: utils array_to_set converts array to set and returns it (0.10 ms) [ RUN ] spec/utils_spec.lua @ 73: utils concat_arrays returns concatenated arrays [ OK ] spec/utils_spec.lua @ 73: utils concat_arrays returns concatenated arrays (0.11 ms) [ RUN ] spec/utils_spec.lua @ 79: utils update updates first table with entries from second [ OK ] spec/utils_spec.lua @ 79: utils update updates first table with entries from second (0.15 ms) [ RUN ] spec/utils_spec.lua @ 89: utils class returns an object creator [ OK ] spec/utils_spec.lua @ 89: utils class returns an object creator (0.16 ms) [ RUN ] spec/utils_spec.lua @ 100: utils class calls __init on object creation [ OK ] spec/utils_spec.lua @ 100: utils class calls __init on object creation (0.19 ms) [ RUN ] spec/utils_spec.lua @ 110: utils Stack supports push/pop operations and top/size fields [ OK ] spec/utils_spec.lua @ 110: utils Stack supports push/pop operations and top/size fields (0.38 ms) [ RUN ] spec/utils_spec.lua @ 136: utils try returns true, original return values on success [ OK ] spec/utils_spec.lua @ 136: utils try returns true, original return values on success (0.14 ms) [ RUN ] spec/utils_spec.lua @ 143: utils try returns false, error wrapper on error [ OK ] spec/utils_spec.lua @ 143: utils try returns false, error wrapper on error (0.26 ms) [ RUN ] spec/utils_spec.lua @ 151: utils try does not wrap already wrapped errors [ OK ] spec/utils_spec.lua @ 151: utils try does not wrap already wrapped errors (0.26 ms) [ RUN ] spec/utils_spec.lua @ 168: utils ripairs returns reversed ipairs [ OK ] spec/utils_spec.lua @ 168: utils ripairs returns reversed ipairs (0.13 ms) [ RUN ] spec/utils_spec.lua @ 181: utils sorted_pairs returns sorted pairs [ OK ] spec/utils_spec.lua @ 181: utils sorted_pairs returns sorted pairs (0.18 ms) [ RUN ] spec/utils_spec.lua @ 194: utils after returns substring after match [ OK ] spec/utils_spec.lua @ 194: utils after returns substring after match (0.10 ms) [ RUN ] spec/utils_spec.lua @ 198: utils after returns nil when there is no match [ OK ] spec/utils_spec.lua @ 198: utils after returns nil when there is no match (0.09 ms) [ RUN ] spec/utils_spec.lua @ 204: utils strip returns string without whitespace on ends [ OK ] spec/utils_spec.lua @ 204: utils strip returns string without whitespace on ends (0.10 ms) [ RUN ] spec/utils_spec.lua @ 210: utils split without separator, returns non-whitespace substrings [ OK ] spec/utils_spec.lua @ 210: utils split without separator, returns non-whitespace substrings (0.12 ms) [ RUN ] spec/utils_spec.lua @ 214: utils split with separator, returns substrings between them [ OK ] spec/utils_spec.lua @ 214: utils split with separator, returns substrings between them (0.12 ms) [ RUN ] spec/utils_spec.lua @ 220: utils map maps function over an array [ OK ] spec/utils_spec.lua @ 220: utils map maps function over an array (0.11 ms) [----------] 28 tests from spec/utils_spec.lua (12.99 ms total) [----------] Global test environment teardown. [==========] 449 tests from 29 test files ran. (6833.84 ms total) [ PASSED ] 448 tests. [ FAILED ] 1 test, listed below: [ FAILED ] spec/cli_spec.lua @ 71: cli allows measuring performance 1 FAILED TEST * ERROR: dev-lua/luacheck-0.23.0::gentoo failed (test phase): * (no error message) * * Call stack: * ebuild.sh, line 125: Called src_test * environment, line 1128: Called die * The specific snippet of code: * busted -o gtest || die * * If you need support, post the output of `emerge --info '=dev-lua/luacheck-0.23.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lua/luacheck-0.23.0::gentoo'`. * The complete build log is located at '/var/log/emerge-log/build/dev-lua/luacheck-0.23.0:20200514-203624.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lua/luacheck-0.23.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lua/luacheck-0.23.0/temp/environment'. * Working directory: '/var/tmp/portage/dev-lua/luacheck-0.23.0/work/luacheck-0.23.0' * S: '/var/tmp/portage/dev-lua/luacheck-0.23.0/work/luacheck-0.23.0' emerge --info: Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r3, 5.4.0-1009-aws x86_64) ================================================================= System uname: Linux-5.4.0-1009-aws-x86_64-AMD_EPYC_7571-with-gentoo-2.7 KiB Mem: 16011344 total, 4649672 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Fri, 15 May 2020 05:35:23 +0000 sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p17::gentoo dev-lang/perl: 5.30.2::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 10.1.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y -1 -b -k" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j4" PKGDIR="/root/.packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS