Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/r/ruby-rubocop-ast/ruby-rubocop-ast_0.3.0+dfsg-1_all.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/ruby-rubocop-ast-0.3.0+dfsg-190qa2qwd/ruby-rubocop-ast_0.3.0+dfsg-1_all.buildinfo Get source package info: ruby-rubocop-ast=0.3.0+dfsg-1 Source URL: http://snapshot.notset.fr/mr/package/ruby-rubocop-ast/0.3.0+dfsg-1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=adduser=3.118 autoconf=2.69-11.1 automake=1:1.16.2-3 autopoint=0.19.8.1-10 autotools-dev=20180224.1 base-files=11 base-passwd=3.5.47 bash=5.0-7 binutils=2.35-2 binutils-common=2.35-2 binutils-x86-64-linux-gnu=2.35-2 bsdextrautils=2.36-2 bsdutils=1:2.36-2 build-essential=12.8 bzip2=1.0.8-4 ca-certificates=20200601 coreutils=8.32-3 cpp=4:10.1.0-1 cpp-10=10.2.0-5 dash=0.5.10.2-7 debconf=1.5.74 debhelper=13.2 debianutils=4.11 devscripts=2.20.4 dh-autoreconf=19 dh-strip-nondeterminism=1.9.0-1 diffutils=1:3.7-3 dirmngr=2.2.20-1 dpkg=1.20.5 dpkg-dev=1.20.5 dwz=0.13-5 fakeroot=1.24-1 file=1:5.38-5 findutils=4.7.0-1 g++=4:10.1.0-1 g++-10=10.2.0-5 gcc=4:10.1.0-1 gcc-10=10.2.0-5 gcc-10-base=10.2.0-5 gem2deb=1.2.1 gem2deb-test-runner=1.2.1 gettext=0.19.8.1-10 gettext-base=0.19.8.1-10 gnupg=2.2.20-1 gnupg-l10n=2.2.20-1 gnupg-utils=2.2.20-1 gpg=2.2.20-1 gpg-agent=2.2.20-1 gpg-wks-client=2.2.20-1 gpg-wks-server=2.2.20-1 gpgconf=2.2.20-1 gpgsm=2.2.20-1 gpgv=2.2.20-1 grep=3.4-1 groff-base=1.22.4-5 gzip=1.10-2 hostname=3.23 init-system-helpers=1.58 intltool-debian=0.35.0+20060710.5 libacl1=2.2.53-8 libarchive-zip-perl=1.68-1 libasan6=10.2.0-5 libassuan0=2.5.3-7.1 libatomic1=10.2.0-5 libattr1=1:2.4.48-5 libaudit-common=1:2.8.5-3 libaudit1=1:2.8.5-3+b1 libb-hooks-op-check-perl=0.22-1+b2 libbinutils=2.35-2 libblkid1=2.36-2 libbz2-1.0=1.0.8-4 libc-bin=2.31-3 libc-dev-bin=2.31-3 libc6=2.31-3 libc6-dev=2.31-3 libcap-ng0=0.7.9-2.2 libcc1-0=10.2.0-5 libclass-method-modifiers-perl=2.13-1 libcroco3=0.6.13-1 libcrypt-dev=1:4.4.16-1 libcrypt1=1:4.4.16-1 libctf-nobfd0=2.35-2 libctf0=2.35-2 libdb5.3=5.3.28+dfsg1-0.6 libdebconfclient0=0.253 libdebhelper-perl=13.2 libdevel-callchecker-perl=0.008-1+b1 libdpkg-perl=1.20.5 libdynaloader-functions-perl=0.003-1 libelf1=0.180-1+b1 libencode-locale-perl=1.05-1 libexpat1=2.2.9-1 libfakeroot=1.24-1 libffi7=3.3-4 libfile-homedir-perl=1.004-1 libfile-listing-perl=6.04-1 libfile-stripnondeterminism-perl=1.9.0-1 libfile-which-perl=1.23-1 libgcc-10-dev=10.2.0-5 libgcc-s1=10.2.0-5 libgcrypt20=1.8.6-2 libgdbm-compat4=1.18.1-5 libgdbm6=1.18.1-5 libglib2.0-0=2.64.4-1 libgmp-dev=2:6.2.0+dfsg-6 libgmp10=2:6.2.0+dfsg-6 libgmpxx4ldbl=2:6.2.0+dfsg-6 libgnutls30=3.6.14-2+b1 libgomp1=10.2.0-5 libgpg-error0=1.38-2 libhogweed6=3.6-2 libhtml-parser-perl=3.72-5 libhtml-tagset-perl=3.20-4 libhtml-tree-perl=5.07-2 libhttp-cookies-perl=6.08-1 libhttp-date-perl=6.05-1 libhttp-message-perl=6.25-1 libhttp-negotiate-perl=6.01-1 libicu67=67.1-4 libidn2-0=2.3.0-1 libimport-into-perl=1.002005-1 libio-html-perl=1.001-1 libio-pty-perl=1:1.12-1 libio-socket-ssl-perl=2.067-1 libipc-run-perl=20200505.0-1 libisl22=0.22.1-1 libitm1=10.2.0-5 libksba8=1.4.0-2 libldap-2.4-2=2.4.50+dfsg-1+b1 libldap-common=2.4.50+dfsg-1 liblsan0=10.2.0-5 liblwp-mediatypes-perl=6.04-1 liblwp-protocol-https-perl=6.09-1 liblz4-1=1.9.2-2 liblzma5=5.2.4-1+b1 libmagic-mgc=1:5.38-5 libmagic1=1:5.38-5 libmodule-runtime-perl=0.016-1 libmoo-perl=2.004000-1 libmount1=2.36-2 libmpc3=1.2.0~rc1-1 libmpfr6=4.1.0-3 libncursesw6=6.2-1 libnet-http-perl=6.19-1 libnet-ssleay-perl=1.88-3 libnettle8=3.6-2 libnpth0=1.6-2 libp11-kit0=0.23.20-1 libpam-modules=1.3.1-5 libpam-modules-bin=1.3.1-5 libpam-runtime=1.3.1-5 libpam0g=1.3.1-5 libparams-classify-perl=0.015-1+b2 libpcre2-8-0=10.34-7 libpcre3=2:8.39-13 libperl5.30=5.30.3-4 libpipeline1=1.5.3-1 libpython3-stdlib=3.8.2-3 libpython3.8-minimal=3.8.5-2 libpython3.8-stdlib=3.8.5-2 libquadmath0=10.2.0-5 libreadline8=8.0-4 librole-tiny-perl=2.001004-1 libruby2.7=2.7.1-3 libsasl2-2=2.1.27+dfsg-2 libsasl2-modules-db=2.1.27+dfsg-2 libseccomp2=2.4.3-1+b1 libselinux1=3.1-2 libsemanage-common=3.1-1 libsemanage1=3.1-1 libsepol1=3.1-1 libsigsegv2=2.12-2 libsmartcols1=2.36-2 libsqlite3-0=3.33.0-1 libssl1.1=1.1.1g-1 libstdc++-10-dev=10.2.0-5 libstdc++6=10.2.0-5 libstrictures-perl=2.000006-1 libsub-override-perl=0.09-2 libsub-quote-perl=2.006006-1 libsystemd0=246.1-1 libtasn1-6=4.16.0-2 libtimedate-perl=2.3300-1 libtinfo6=6.2-1 libtool=2.4.6-14 libtry-tiny-perl=0.30-1 libtsan0=10.2.0-5 libubsan1=10.2.0-5 libuchardet0=0.0.7-1 libudev1=246.1-1 libunistring2=0.9.10-4 liburi-perl=1.76-2 libuuid1=2.36-2 libwww-perl=6.46-1 libwww-robotrules-perl=6.02-1 libxml2=2.9.10+dfsg-5+b1 libyaml-0-2=0.2.2-1 libzstd1=1.4.5+dfsg-4 linux-libc-dev=5.7.10-1 login=1:4.8.1-1 lsb-base=11.1.0 m4=1.4.18-4 make=4.3-4 man-db=2.9.3-2 mawk=1.3.4.20200120-2 mime-support=3.64 ncurses-base=6.2-1 ncurses-bin=6.2-1 netbase=6.1 openssl=1.1.1g-1 passwd=1:4.8.1-1 patch=2.7.6-6 patchutils=0.4.2-1 perl=5.30.3-4 perl-base=5.30.3-4 perl-modules-5.30=5.30.3-4 perl-openssl-defaults=5 pinentry-curses=1.1.0-4 po-debconf=1.0.21 python3=3.8.2-3 python3-minimal=3.8.2-3 python3.8=3.8.5-2 python3.8-minimal=3.8.5-2 rake=13.0.1-4 readline-common=8.0-4 ruby=1:2.7+1 ruby-all-dev=1:2.7+1 ruby-ast=2.4.1-1 ruby-diff-lcs=1.4.4-1 ruby-minitest=5.13.0-1 ruby-net-telnet=0.1.1-2 ruby-power-assert=1.1.7-1 ruby-rspec=3.9.0c1e0m1s2-1 ruby-rspec-core=3.9.0c1e0m1s2-1 ruby-rspec-expectations=3.9.0c1e0m1s2-1 ruby-rspec-mocks=3.9.0c1e0m1s2-1 ruby-rspec-support=3.9.0c1e0m1s2-1 ruby-setup=3.4.1-9 ruby-test-unit=3.3.5-1 ruby-whitequark-parser=2.7.1.4-2 ruby-xmlrpc=0.3.0-2 ruby2.7=2.7.1-3 ruby2.7-dev=2.7.1-3 rubygems-integration=1.17.2 sed=4.7-1 sensible-utils=0.0.12+nmu1 sysvinit-utils=2.96-4 tar=1.30+dfsg-7 util-linux=2.36-2 wdiff=1.2.2-2+b1 xz-utils=5.2.4-1+b1 zlib1g=1:1.2.11.dfsg-2 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20201207T203938Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20200817T205605Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d ruby-rubocop-ast=0.3.0+dfsg-1 && mkdir -p /build/ruby-rubocop-ast-Lnu8Ky && dpkg-source --no-check -x /*.dsc /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg && chown -R builduser:builduser /build/ruby-rubocop-ast-Lnu8Ky" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1597816468" dpkg-buildpackage -uc -a amd64 --build=all" --customize-hook=sync-out /build/ruby-rubocop-ast-Lnu8Ky /tmp/ruby-rubocop-ast-0.3.0+dfsg-190qa2qwd bullseye /dev/null deb http://snapshot.notset.fr/archive/debian/20200817T205605Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.qRApwZKdVm as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.qRApwZKdVm Reading package lists... Building dependency tree... util-linux is already the newest version (2.36-2). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 132 kB of archives. After this operation, 393 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20200817T205605Z unstable/main amd64 libfakeroot amd64 1.24-1 [45.7 kB] Get:2 http://snapshot.notset.fr/archive/debian/20200817T205605Z unstable/main amd64 fakeroot amd64 1.24-1 [85.9 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 132 kB in 0s (1091 kB/s) Selecting previously unselected package libfakeroot:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 4577 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.24-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.24-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.24-1_amd64.deb ... Unpacking fakeroot (1.24-1) ... Setting up libfakeroot:amd64 (1.24-1) ... Setting up fakeroot (1.24-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.31-3) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20201207T203938Z/ unstable main deb http://snapshot.notset.fr/archive/debian/20200817T205605Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.qRApwZKdVm Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Get:2 http://snapshot.notset.fr/archive/debian/20201207T203938Z unstable InRelease [153 kB] Hit:3 http://snapshot.notset.fr/archive/debian/20200817T205605Z unstable InRelease Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:5 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Ign:6 http://snapshot.notset.fr/archive/debian/20201207T203938Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20201207T203938Z unstable/main amd64 Packages Ign:6 http://snapshot.notset.fr/archive/debian/20201207T203938Z unstable/main amd64 Packages Get:6 http://snapshot.notset.fr/archive/debian/20201207T203938Z unstable/main amd64 Packages [11.6 MB] Fetched 34.3 MB in 30s (1155 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.qRApwZKdVm I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d ruby-rubocop-ast=0.3.0+dfsg-1 && mkdir -p /build/ruby-rubocop-ast-Lnu8Ky && dpkg-source --no-check -x /*.dsc /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg && chown -R builduser:builduser /build/ruby-rubocop-ast-Lnu8Ky"' exec /tmp/mmdebstrap.qRApwZKdVm Reading package lists... NOTICE: 'ruby-rubocop-ast' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/ruby-team/ruby-rubocop-ast.git Please use: git clone https://salsa.debian.org/ruby-team/ruby-rubocop-ast.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 92.7 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-rubocop-ast 0.3.0+dfsg-1 (dsc) [2228 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-rubocop-ast 0.3.0+dfsg-1 (tar) [87.8 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main ruby-rubocop-ast 0.3.0+dfsg-1 (diff) [2668 B] Fetched 92.7 kB in 0s (1028 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'ruby-rubocop-ast_0.3.0+dfsg-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting ruby-rubocop-ast in /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg dpkg-source: info: unpacking ruby-rubocop-ast_0.3.0+dfsg.orig.tar.gz dpkg-source: info: unpacking ruby-rubocop-ast_0.3.0+dfsg-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 0001-gemspec-drop-git-usage.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg && env DEB_BUILD_OPTIONS="parallel=4" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1597816468" dpkg-buildpackage -uc -a amd64 --build=all"' exec /tmp/mmdebstrap.qRApwZKdVm dpkg-buildpackage: info: source package ruby-rubocop-ast dpkg-buildpackage: info: source version 0.3.0+dfsg-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Utkarsh Gupta dpkg-source --before-build . debian/rules clean dh clean --buildsystem=ruby --with ruby dh_auto_clean -O--buildsystem=ruby dh_ruby --clean dh_ruby --clean dh_autoreconf_clean -O--buildsystem=ruby dh_clean -O--buildsystem=ruby debian/rules binary-indep dh binary-indep --buildsystem=ruby --with ruby dh_update_autotools_config -i -O--buildsystem=ruby dh_autoreconf -i -O--buildsystem=ruby dh_auto_configure -i -O--buildsystem=ruby dh_ruby --configure dh_auto_build -i -O--buildsystem=ruby dh_ruby --build dh_ruby --build dh_auto_test -i -O--buildsystem=ruby dh_ruby --test create-stamp debian/debhelper-build-stamp dh_testroot -i -O--buildsystem=ruby dh_prep -i -O--buildsystem=ruby dh_auto_install -i -O--buildsystem=ruby dh_ruby --install /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0\+dfsg/debian/ruby-rubocop-ast dh_ruby --install /usr/bin/ruby2.7 -S gem build --config-file /dev/null --verbose /tmp/d20211005-314276-dpdvzr/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on parser (>= 2.7.1.4) is not recommended if parser is semantically versioned, use: add_runtime_dependency 'parser', '~> 2.7', '>= 2.7.1.4' WARNING: See http://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: rubocop-ast Version: 0.3.0 File: rubocop-ast-0.3.0.gem /usr/bin/ruby2.7 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rubocop-ast/usr/share/rubygems-integration/all /tmp/d20211005-314276-dpdvzr/rubocop-ast-0.3.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop-ast.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/builder.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/ext/range.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/alias_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/and_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/args_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/array_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/block_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/break_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/case_match_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/case_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/class_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/def_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/defined_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/ensure_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/float_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/for_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/forward_args_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/hash_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/if_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/index_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/indexasgn_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/int_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/keyword_splat_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/lambda_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/basic_literal_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/binary_operator_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/collection_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/conditional_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/hash_element_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/method_dispatch_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/method_identifier_predicates.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/modifier_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/numeric_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/parameterized_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/mixin/predicate_operator_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/module_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/next_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/or_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/pair_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/range_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/regexp_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/resbody_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/return_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/self_class_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/send_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/str_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/super_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/symbol_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/until_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/when_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/while_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node/yield_node.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/node_pattern.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/processed_source.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/sexp.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/token.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/traversal.rb /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all/gems/rubocop-ast-0.3.0/lib/rubocop/ast/version.rb Successfully installed rubocop-ast-0.3.0 1 gem installed cd debian/ruby-rubocop-ast/usr/share/rubygems-integration/all rm -rf bin rm -rf build_info rm -rf cache rm -rf doc rm -rf extensions cd gems/rubocop-ast-0.3.0 rm -f chmod 644 lib/rubocop/ast/node.rb lib/rubocop/ast/token.rb lib/rubocop/ast/version.rb lib/rubocop/ast/builder.rb lib/rubocop/ast/node_pattern.rb lib/rubocop/ast/sexp.rb lib/rubocop/ast/processed_source.rb lib/rubocop/ast/traversal.rb lib/rubocop/ast/ext/range.rb lib/rubocop/ast/node/ensure_node.rb lib/rubocop/ast/node/class_node.rb lib/rubocop/ast/node/pair_node.rb lib/rubocop/ast/node/symbol_node.rb lib/rubocop/ast/node/module_node.rb lib/rubocop/ast/node/self_class_node.rb lib/rubocop/ast/node/defined_node.rb lib/rubocop/ast/node/forward_args_node.rb lib/rubocop/ast/node/break_node.rb lib/rubocop/ast/node/or_node.rb lib/rubocop/ast/node/case_match_node.rb lib/rubocop/ast/node/if_node.rb lib/rubocop/ast/node/args_node.rb lib/rubocop/ast/node/mixin/numeric_node.rb lib/rubocop/ast/node/mixin/method_identifier_predicates.rb lib/rubocop/ast/node/mixin/modifier_node.rb lib/rubocop/ast/node/mixin/method_dispatch_node.rb lib/rubocop/ast/node/mixin/hash_element_node.rb lib/rubocop/ast/node/mixin/collection_node.rb lib/rubocop/ast/node/mixin/binary_operator_node.rb lib/rubocop/ast/node/mixin/basic_literal_node.rb lib/rubocop/ast/node/mixin/conditional_node.rb lib/rubocop/ast/node/mixin/predicate_operator_node.rb lib/rubocop/ast/node/mixin/parameterized_node.rb lib/rubocop/ast/node/until_node.rb lib/rubocop/ast/node/yield_node.rb lib/rubocop/ast/node/and_node.rb lib/rubocop/ast/node/range_node.rb lib/rubocop/ast/node/super_node.rb lib/rubocop/ast/node/float_node.rb lib/rubocop/ast/node/resbody_node.rb lib/rubocop/ast/node/alias_node.rb lib/rubocop/ast/node/lambda_node.rb lib/rubocop/ast/node/return_node.rb lib/rubocop/ast/node/case_node.rb lib/rubocop/ast/node/regexp_node.rb lib/rubocop/ast/node/keyword_splat_node.rb lib/rubocop/ast/node/indexasgn_node.rb lib/rubocop/ast/node/for_node.rb lib/rubocop/ast/node/when_node.rb lib/rubocop/ast/node/while_node.rb lib/rubocop/ast/node/array_node.rb lib/rubocop/ast/node/index_node.rb lib/rubocop/ast/node/str_node.rb lib/rubocop/ast/node/send_node.rb lib/rubocop/ast/node/def_node.rb lib/rubocop/ast/node/hash_node.rb lib/rubocop/ast/node/block_node.rb lib/rubocop/ast/node/next_node.rb lib/rubocop/ast/node/int_node.rb lib/rubocop/ast.rb lib/rubocop-ast.rb find lib/ -type d -empty -delete cd - cd - dh_installchangelogs -pruby-rubocop-ast /build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/CHANGELOG.md upstream /usr/bin/ruby2.7 /usr/bin/gem2deb-test-runner ┌──────────────────────────────────────────────────────────────────────────────┐ │ Checking Rubygems dependency resolution on ruby2.7 │ └──────────────────────────────────────────────────────────────────────────────┘ GEM_PATH=/build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all:/build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/.debhelper/generated/_source/home/.gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -e gem\ \"rubocop-ast\" ┌──────────────────────────────────────────────────────────────────────────────┐ │ Run tests for ruby2.7 from debian/ruby-tests.rake │ └──────────────────────────────────────────────────────────────────────────────┘ RUBYLIB=. GEM_PATH=/build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/ruby-rubocop-ast/usr/share/rubygems-integration/all:/build/ruby-rubocop-ast-Lnu8Ky/ruby-rubocop-ast-0.3.0+dfsg/debian/.debhelper/generated/_source/home/.gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake /usr/bin/ruby2.7 -ruri -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.2/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation Randomized with seed 18025 RuboCop::AST::NodePattern captures which also perform a match on a literal behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block on a sequence behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block when nested behaves like multiple capture yields captured value(s) and returns true if there is a block returns captured values if there is no block on [] behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block on a node type behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block on a set behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block repeated using + with zero match behaves like nonmatching doesn't match behaves like repeated pattern with an ellipsis in the same sequence behaves like invalid is invalid with one match behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block at beginning of sequence behaves like invalid is invalid with matching children behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block using ? behaves like repeated pattern with an ellipsis in the same sequence behaves like invalid is invalid with one match behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block at beginning of sequence behaves like invalid is invalid with too many matching children behaves like nonmatching doesn't match with zero match behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block using * with no match behaves like nonmatching doesn't match with zero match behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with multiple subcaptures behaves like multiple capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with matching children behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block without capture behaves like matching matches nested with multiple subcaptures behaves like multiple capture returns captured values if there is no block yields captured value(s) and returns true if there is a block behaves like repeated pattern with an ellipsis in the same sequence behaves like invalid is invalid with one match behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block at beginning of sequence behaves like invalid is invalid sequence with trailing ... on a node with the same type and more children with 2 children more behaves like matching matches with 1 child more behaves like matching matches on a node with fewer children, with a wildcard preceding behaves like nonmatching doesn't match on a node with the same type and exact number of children behaves like matching matches on a node with non-matching children behaves like nonmatching doesn't match on a node with a different type behaves like nonmatching doesn't match on a node with the same type and fewer children behaves like nonmatching doesn't match .descend yields the given argument if it is not a Node yields all children depth first bad syntax with doubled ellipsis behaves like invalid is invalid with empty parentheses behaves like invalid is invalid with unmatched opening paren and `...` behaves like invalid is invalid with doubled comma in arg list behaves like invalid is invalid with empty union behaves like invalid is invalid with leading comma in arg list behaves like invalid is invalid with unmatched opening paren behaves like invalid is invalid with empty intersection behaves like invalid is invalid with unmatched closing curly behaves like invalid is invalid with unmatched closing paren behaves like invalid is invalid with negated closing curly behaves like invalid is invalid with negated closing paren behaves like invalid is invalid with unmatched opening curly behaves like invalid is invalid with negated ellipsis behaves like invalid is invalid macros with a pattern without captures def_node_matcher when called on non-matching code behaves like nonmatching doesn't match when it errors raises an error with the right location when called on matching code behaves like matching matches def_node_search with a predicate name when it errors raises an error with the right location when called on matching code behaves like matching matches when called on non-matching code behaves like nonmatching doesn't match without a predicate name when it errors raises an error with the right location when called on non-matching code returns an enumerator yielding nothing when called on matching code returns an enumerator yielding the matches with a pattern with captures def_node_matcher when it errors raises an error with the right location when called on matching code behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block when called on non-matching code behaves like nonmatching doesn't match def_node_search with a predicate name when called on non-matching code behaves like nonmatching doesn't match when called on matching code behaves like matching matches when it errors raises an error with the right location without a predicate name when called on matching code returns an enumerator yielding the captures when the pattern contains keyword_params returns an enumerator yielding the captures when helper is called with default keyword_params is overriden when calling the matcher and no value is given to the matcher uses the defaults some defaults are not params raises an error when called on non-matching code returns an enumerator yielding nothing when it errors raises an error with the right location with a pattern with a constant behaves like matching matches when the value is not in the set behaves like nonmatching doesn't match node type in seq head on a node with the same type behaves like matching matches on a child with a different type behaves like nonmatching doesn't match for a child on a child with a different type behaves like nonmatching doesn't match on a child litteral behaves like nonmatching doesn't match on a child with the same type behaves like matching matches negation when nested in complex ways with (send str :+ (send str :to_i)) behaves like matching matches with (send str :<< str) behaves like nonmatching doesn't match with (send int :- int) behaves like matching matches on a symbol with a non-matching symbol behaves like matching matches with a non-matching symbol, but too many children behaves like nonmatching doesn't match with a matching symbol behaves like nonmatching doesn't match on a set with a matching value behaves like nonmatching doesn't match with a non-matching value behaves like matching matches on a string with a non-matching symbol behaves like matching matches with a matching string behaves like nonmatching doesn't match on square brackets with a node which meets only 1 requirement of [] behaves like matching matches with a node which meets all requirements of [] behaves like nonmatching doesn't match on a sequence with a matching node behaves like nonmatching doesn't match with a node of different type behaves like matching matches with a node with non-matching children behaves like matching matches literals negative float literals behaves like matching matches double quoted string literals behaves like matching matches symbol literals behaves like matching matches single quoted string literals behaves like matching matches negative integer literals behaves like matching matches positive float literals behaves like matching matches bare literal on a node behaves like nonmatching doesn't match on a matching literal behaves like matching matches funcalls without extra arguments behaves like matching matches with one argument behaves like matching matches with multiple arguments behaves like matching matches params param number zero in a position which matches original target node behaves like matching matches in a position which does not match original target node behaves like nonmatching doesn't match when inside a union, with a matching value behaves like matching matches when negated, with a nonmatching value behaves like matching matches when negated, with a matching value behaves like nonmatching doesn't match when inside a union, with a nonmatching value behaves like nonmatching doesn't match in root position behaves like matching matches in root position behaves like matching matches as named parameters when not provided raises an ArgumentError when extra are provided raises an ArgumentError when provided as argument to match behaves like matching matches without explicit number behaves like matching matches in a nested sequence behaves like matching matches when captured behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block when preceded by ... behaves like matching matches when preceded by $... behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block when inside an intersection behaves like matching matches commas with commas randomly strewn around behaves like invalid is invalid descend with a literal match behaves like matching matches with an immediate match behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with a match multiple levels, depth first behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block without match behaves like nonmatching doesn't match nested behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block caret (ascend) inside a union behaves like matching matches within sequence not in head of a sequence behaves like matching matches behaves like matching matches in head of a sequence behaves like matching matches behaves like matching matches using unification to match self within parent with self in the right position behaves like matching matches with self in the wrong position behaves like nonmatching doesn't match inside an intersection behaves like matching matches repeated twice behaves like matching matches used with a node type which doesn't match behaves like nonmatching doesn't match which matches behaves like matching matches ellipsis with a set at the end, but no remaining child to match it behaves like nonmatching doesn't match preceding multiple captures behaves like multiple capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with a nodetype at the end, but no remaining child to match it behaves like nonmatching doesn't match preceding a capture behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with a nested sequence at the end, but no remaining child behaves like nonmatching doesn't match with a wildcard at the end, but no remaining child to match it behaves like nonmatching doesn't match with [] at the end, but no remaining child to match it behaves like nonmatching doesn't match at the very beginning of a sequence behaves like matching matches in any order captured without ellipsis behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block doubled separated by fixed argument behaves like multiple capture returns captured values if there is no block yields captured value(s) and returns true if there is a block separated by an ellipsis behaves like multiple capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with a captured ellipsis matching all children behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block matching non sequential children behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block nested behaves like multiple capture yields captured value(s) and returns true if there is a block returns captured values if there is no block without ellipsis with too few children behaves like nonmatching doesn't match with too many children behaves like nonmatching doesn't match with matching children behaves like multiple capture returns captured values if there is no block yields captured value(s) and returns true if there is a block invalid doubled with ellipsis behaves like invalid is invalid with an ellipsis inside and outside behaves like invalid is invalid at the beginning of a sequence behaves like invalid is invalid containing ellipsis not at the end behaves like invalid is invalid nested behaves like invalid is invalid with an ellipsis behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block predicates with one extra argument for which the predicate is true behaves like matching matches for which the predicate is false behaves like nonmatching doesn't match applied to an integer for which the predicate is false behaves like nonmatching doesn't match at head position of a sequence behaves like matching matches with an expression argument for which the predicate is false behaves like nonmatching doesn't match for which the predicate is true behaves like matching matches when negated behaves like matching matches when captured behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with a named argument for which the predicate is false behaves like nonmatching doesn't match for which the predicate is true behaves like matching matches with extra arguments raises an error when not given raises an error when in last-child position, but all children have already been matched behaves like nonmatching doesn't match in root position behaves like matching matches with name containing a numeral behaves like matching matches with a constant argument for which the predicate is false behaves like nonmatching doesn't match for which the predicate is true behaves like matching matches applied to an integer for which the predicate is true behaves like matching matches with multiple arguments for which the predicate is true behaves like matching matches for which the predicate is false behaves like nonmatching doesn't match simple sequence on a node with the same type and non-matching children with non-matching selector behaves like nonmatching doesn't match with non-matching receiver type behaves like nonmatching doesn't match with a nested sequence in non-head position behaves like matching matches on a node with too many children behaves like nonmatching doesn't match on a node with a different type behaves like nonmatching doesn't match with a nested sequence in head position behaves like invalid is invalid on a node with the same type and matching children behaves like matching matches wildcards unnamed wildcards negated behaves like nonmatching doesn't match in head position of a sequence behaves like matching matches at the root level behaves like matching matches within a sequence behaves like matching matches within a sequence with other patterns intervening behaves like matching matches named wildcards at the root level behaves like matching matches within a sequence with other patterns intervening behaves like matching matches within a union with a succeeding unifying constraint with branches without the wildcard encountered after behaves like invalid is invalid encountered first behaves like invalid is invalid with all branches with the wildcard that can not be unified behaves like nonmatching doesn't match matching the first branch behaves like matching matches matching another branch behaves like matching matches confined to the union without unification behaves like matching matches with partial unification matching the free branch behaves like matching matches matching the unified branch behaves like matching matches that can not be unified behaves like nonmatching doesn't match with a preceding unifying constraint that can not be unified behaves like nonmatching doesn't match matching a branch behaves like matching matches in head position of a sequence behaves like matching matches within a sequence unifying the node type with an argument behaves like matching matches with values which can be unified behaves like matching matches with values which cannot be unified behaves like nonmatching doesn't match comments behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block bare node type #pattern returns the pattern #== returns true iff the patterns are similar #dup behaves like matching matches on a node with a matching, hyphenated type behaves like matching matches marshal compatibility behaves like matching matches yaml compatibility behaves like matching matches #to_s is instructive on a node with the same type behaves like matching matches on a node with a different type behaves like nonmatching doesn't match nil nil value in AST behaves like nonmatching doesn't match nil value in AST, use nil? method behaves like matching matches against a node pattern (bug #5470) behaves like nonmatching doesn't match nil literals behaves like matching matches unions with a nested sequence behaves like matching matches nested inside a sequence behaves like matching matches at the top level containing mixed node and literals behaves like matching matches containing string literals behaves like matching matches containing multiple [] on a node which meets some requirements but not all behaves like nonmatching doesn't match on a node which meets all requirements of the second [] behaves like matching matches on a node which meets all requirements of the first [] behaves like matching matches containing symbol literals when the AST has a matching symbol behaves like matching matches when the AST does not have a matching symbol behaves like nonmatching doesn't match containing integer literals behaves like matching matches captures on ... at the very beginning of a sequence behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with a remaining node type at the end behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with a remaining capture at the end behaves like multiple capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with a remaining [] at the end behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block after a child behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with remaining patterns at the end behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with a remaining sequence at the end behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with no remaining pattern at the end behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with a remaining literal at the end behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with a remaining wildcard at the end behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with a remaining set at the end behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block captures on a wildcard at the root level behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block in head position in a sequence behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block in non-head position in a sequence behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block in head position in a sequence against literal (bug #5470) behaves like nonmatching doesn't match in a nested sequence behaves like single capture returns captured values if there is no block yields captured value(s) and returns true if there is a block in head position in a sequence against nil (bug #5470) behaves like nonmatching doesn't match captures within union within nested sequences behaves like multiple capture returns captured values if there is no block yields captured value(s) and returns true if there is a block with a different number of captures in each branch behaves like invalid is invalid on simple subpatterns behaves like single capture yields captured value(s) and returns true if there is a block returns captured values if there is no block with complex nesting behaves like multiple capture yields captured value(s) and returns true if there is a block returns captured values if there is no block RuboCop::AST::Ext::Range #line_span accepts an `exclude_end` keyword argument returns the range of lines a range occupies RuboCop::AST::RangeNode .new with an exclusive range is expected to equal true is expected to equal true with an inclusive range is expected to equal true is expected to equal true with an infinite range is expected to equal true is expected to equal true with a beignless range is expected to equal true is expected to equal true RuboCop::AST::AndNode #lhs with a semantic and node is expected to equal true with a logical and node is expected to equal true #operator with a logical and node is expected to eq "&&" with a semantic and node is expected to eq "and" #alternate_operator with a semantic and node is expected to eq "&&" with a logical and node is expected to eq "and" #rhs with a logical and node is expected to equal true with a semantic and node is expected to equal true .new with a logical and node is expected to equal true with a semantic and node is expected to equal true #semantic_operator? with a semantic and node is expected to equal true with a logical and node is expected to equal false #inverse_operator with a semantic and node is expected to eq "or" with a logical and node is expected to eq "||" #logical_operator? with a logical and node is expected to equal true with a semantic and node is expected to equal false RuboCop::AST::SendNode #nonmutating_array_method? with a regular method is expected to be falsey with a nonmutating Array method is expected to be truthy with a mutating Array method is expected to be falsey #const_receiver? with a self receiver is expected to be falsey with a non-constant receiver is expected to be falsey with a constant receiver is expected to be truthy #nonmutating_operator_method? with a nonmutating unary operator method is expected to be truthy with a mutating binary operator method is expected to be falsey with a nonmutating binary operator method is expected to be truthy with a regular method is expected to be falsey #unary_operation? with a regular method call is expected to equal false with a unary operation is expected to equal true with an implicit call method is expected to equal false with a binary operation is expected to equal false #splat_argument? with mixed arguments is expected to be truthy with regular arguments is expected to be falsey with a splat argument is expected to be truthy with no arguments is expected to be falsey #camel_case_method? with a camel case method is expected to be truthy with a regular method is expected to be falsey #implicit_call? with an implicit call method is expected to be truthy with a regular method is expected to be falsey with an explicit call method is expected to be falsey #receiver with a variable receiver is expected to equal true with a literal receiver is expected to equal true with no receiver is expected to equal true #lambda_literal? with a lambda method is expected to equal false with `a.() {}` style method is expected to be falsey with a stabby lambda is expected to equal true with a non-lambda method is expected to be falsey #arithmetic_operation? with a binary arithmetic operation is expected to be truthy with a unary numeric operation is expected to be falsey with a regular method call is expected to be falsey #command? when argument is a string with an explicit receiver is expected to be falsey with an implicit receiver is expected to be truthy when argument is a symbol with an explicit receiver is expected to be falsey with an implicit receiver is expected to be truthy #loop_keyword? is expected to equal false #method? when message does not match when argument is a symbol is expected to be falsey when argument is a string is expected to be falsey when message matches when argument is a string is expected to be truthy when argument is a symbol is expected to be truthy #bang_method? with a predicate method is expected to be falsey with a bang method is expected to be truthy with a regular method is expected to be falsey #block_node with no block is expected to equal true with a block literal is expected to equal true with a block argument is expected to equal true #arguments with a single literal argument is expected to eq 1 with no arguments is expected to equal true with multiple literal arguments is expected to eq 2 with multiple mixed arguments is expected to eq 2 with a single splat argument is expected to eq 1 #prefix_bang? with a non-negated method is expected to be falsey with a bang method is expected to be truthy with keyword `not` is expected to be falsey #bare_access_modifier? when node is a bare `module_function` is expected to be truthy when node is a bare `public` is expected to be truthy when node is a bare `protected` is expected to be truthy when node has an argument is expected to be falsey when node is not an access modifier is expected to be falsey when node is a bare `private` is expected to be truthy .new with a regular method send is expected to equal true with a safe navigation method send is expected to equal true #binary_operation?? with a unary operation is expected to equal false with an implicit call method is expected to equal false with a binary operation is expected to equal true with a regular method call is expected to equal false #method_name with an implicit call method is expected to eq :call with a setter method is expected to eq :bar= with an operator method is expected to eq :== with a plain method is expected to eq :bar #prefix_not? with keyword `not` is expected to be truthy with a bang method is expected to be falsey with a non-negated method is expected to be falsey #assignment_method? with a regular method is expected to be falsey with an assignment method is expected to be truthy with a comparison method is expected to be falsey with a bracket assignment method is expected to be truthy #comparison_method? with a regular method is expected to be falsey with a negation method is expected to be falsey with a comparison method is expected to be truthy #non_bare_access_modifier? when node is not an access modifier is expected to be falsey when node is a non-bare `private` is expected to be truthy when node is a non-bare `module_function` is expected to be truthy when node is a non-bare `public` is expected to be truthy when node is a non-bare `protected` is expected to be truthy when node does not have an argument is expected to be falsey #lambda? with a stabby lambda method is expected to be truthy with a method named lambda in a class is expected to be falsey with a non-lambda method is expected to be falsey with a lambda method is expected to be truthy #nonmutating_hash_method? with a nonmutating Hash method is expected to be truthy with a regular method is expected to be falsey with a mutating Hash method is expected to be falsey #enumerable_method? with an enumerable method is expected to be truthy with a regular method is expected to be falsey #attribute_accessor? with an accessor returns the accessor method and Array] with a call without arguments is expected to equal nil #parenthesized? with no arguments when not using parentheses is expected to be falsey when using parentheses is expected to be truthy with arguments when not using parentheses is expected to be falsey when using parentheses is expected to be truthy #self_receiver? with a self receiver is expected to be truthy with a non-self receiver is expected to be falsey with an implicit receiver is expected to be falsey #last_argument with no arguments is expected to equal true with a single splat argument is expected to equal true with multiple literal arguments is expected to equal true with multiple mixed arguments is expected to equal true with a single literal argument is expected to equal true #macro? without a receiver when parent is a class constructor is expected to be truthy when parent is a method definition is expected to be falsey without a parent is expected to be truthy when parent is a keyword begin inside of an class is expected to be truthy when parent is a class is expected to be truthy when parent is a module is expected to be truthy when parent is a block is expected to be truthy when parent is a singleton class is expected to be truthy when parent is a begin without a parent is expected to be truthy with a receiver when parent is a module is expected to be falsey when parent is a class is expected to be falsey #negation_method? with suffix `not` is expected to be falsey with a non-negated method is expected to be falsey with prefix `not` is expected to be truthy with prefix bang is expected to be truthy #post_condition_loop? is expected to equal false #def_modifier? with several prefixed def modifiers is expected to be truthy with a prefixed def modifier is expected to be truthy #access_modifier? when node is a non-bare `private` is expected to be truthy when node is a bare `module_function` is expected to be truthy when node is not an access modifier is expected to be falsey when node is a non-bare `protected` is expected to be truthy when node is a non-bare `public` is expected to be truthy when node is a bare `protected` is expected to be truthy when node is a non-bare `module_function` is expected to be truthy when node is a bare `public` is expected to be truthy when node is a bare `private` is expected to be truthy #operator_method? with a binary operator method is expected to be truthy with a regular method is expected to be falsey with a unary operator method is expected to be truthy with a setter method is expected to be falsey #block_literal? with a block argument is expected to be falsey with no block is expected to be falsey with a block literal is expected to be truthy #dot? without a dot is expected to be falsey with a double colon is expected to be falsey with a dot is expected to be truthy with a unary method is expected to be falsey #nonmutating_string_method? with a regular method is expected to be falsey with a mutating String method is expected to be falsey with a nonmutating String method is expected to be truthy #block_argument? with mixed arguments is expected to be truthy with no arguments is expected to be falsey with a block argument is expected to be truthy with regular arguments is expected to be falsey #first_argument with a single splat argument is expected to equal true with no arguments is expected to equal true with multiple mixed arguments is expected to equal true with a single literal argument is expected to equal true with multiple literal arguments is expected to equal true #setter_method? with a regular method is expected to be falsey with an operator method is expected to be falsey with a setter method is expected to be truthy with an indexed setter method is expected to be truthy #double_colon? with a unary method is expected to be falsey with a double colon is expected to be truthy with a dot is expected to be falsey without a dot is expected to be falsey #arguments? with multiple mixed arguments is expected to be truthy with a single literal argument is expected to be truthy with a single splat argument is expected to be truthy with no arguments is expected to be falsey with multiple literal arguments is expected to be truthy #nonmutating_binary_operator_method? with a nonmutating binary operator method is expected to be truthy with a regular method is expected to be falsey with a mutating binary operator method is expected to be falsey #predicate_method? with a bang method is expected to be falsey with a predicate method is expected to be truthy with a regular method is expected to be falsey #nonmutating_unary_operator_method? with a nonmutating unary operator method is expected to be truthy with a regular method is expected to be falsey RuboCop::AST::ModuleNode #body with a single expression body is expected to equal true with an empty body is expected to equal nil with a multi-expression body is expected to equal true #identifier is expected to equal true .new is expected to equal true RuboCop::AST::DefinedNode .new with a defined? node is expected to equal true #method_name is expected to eq :defined? #receiver is expected to eq nil #arguments is expected to eq 1 is expected to all be sym type RuboCop::AST::SelfClassNode .new is expected to equal true #body with a single expression body is expected to equal true with a multi-expression body is expected to equal true with an empty body is expected to equal nil #identifier is expected to equal true RuboCop::AST::CaseMatchNode when using Ruby 2.7 or newer .new is expected to equal true #each_in_pattern when passed a block yields all the conditions when not passed a block is expected to equal true #else_branch #else? with an else statement is expected to equal true without an else statement is expected to equal true #keyword is expected to eq "case" #else? without an else statement is expected to equal false with an else statement is expected to equal true #in_pattern_branches is expected to all be in pattern type is expected to eq 3 RuboCop::AST::PairNode #value is expected to equal true #value_on_new_line? when pair is on a single line is expected to be falsey when value spans multiple lines is expected to be falsey when value starts on a new line is expected to be truthy #key_delta with alignment set to :left when using colon delimiters when keys are aligned when second pair is a keyword splat is expected to eq 0 when both pairs are explicit pairs is expected to eq 0 when both keys are on the same line when both pairs are explicit pairs is expected to eq 0 when second pair is a keyword splat is expected to eq 0 when receiver key is behind when second pair is a keyword splat is expected to eq -2 when both pairs are reail pairs is expected to eq -2 when receiver key is ahead when second pair is a keyword splat is expected to eq 2 when both pairs are explicit pairs is expected to eq 2 when using hash rocket delimiters when keys are aligned when both keys are explicit keys is expected to eq 0 when second key is a keyword splat is expected to eq 0 when receiver key is ahead when second pair is a keyword splat is expected to eq 2 when both pairs are explicit pairs is expected to eq 2 when both keys are on the same line when both pairs are explicit pairs is expected to eq 0 when second pair is a keyword splat is expected to eq 0 when receiver key is behind when second pair is a keyword splat is expected to eq -2 when both pairs are explicit pairs is expected to eq -2 with alignment set to :right when using colon delimiters when receiver key is behind when both pairs are reail pairs is expected to eq -2 when second pair is a keyword splat is expected to eq 0 when keys are aligned when second pair is a keyword splat is expected to eq 0 when both pairs are explicit pairs is expected to eq 0 when both keys are on the same line when both pairs are explicit pairs is expected to eq 0 when second pair is a keyword splat is expected to eq 0 when receiver key is ahead when second pair is a keyword splat is expected to eq 0 when both pairs are explicit pairs is expected to eq 2 when using hash rocket delimiters when receiver key is ahead when second pair is a keyword splat is expected to eq 0 when both pairs are explicit pairs is expected to eq 2 when receiver key is behind when both pairs are explicit pairs is expected to eq -2 when second pair is a keyword splat is expected to eq 0 when both keys are on the same line when both pairs are explicit pairs is expected to eq 0 when second pair is a keyword splat is expected to eq 0 when keys are aligned when second key is a keyword splat is expected to eq 0 when both keys are explicit keys is expected to eq 0 #value_delta when using hash rocket delimiters when values are aligned when second pair is a keyword splat is expected to eq 0 when both pairs are explicit pairs is expected to eq 0 when both pairs are on the same line is expected to eq 0 when receiver value is ahead is expected to eq 2 when receiver value is behind is expected to eq -2 when using colon delimiters when receiver value is behind is expected to eq -2 when both pairs are on the same line is expected to eq 0 when receiver value is ahead is expected to eq 2 when values are aligned when both pairs are explicit pairs is expected to eq 0 when second pair is a keyword splat is expected to eq 0 #inverse_delimiter when using a colon delimiter is expected to eq "=>" is expected to eq " => " when using a hash rocket delimiter is expected to eq ":" is expected to eq ": " .new is expected to equal true #same_line? when a multiline pair shares the same line when last pair is a keyword splat is expected to be truthy is expected to be truthy when both pairs are explicit pairs is expected to be truthy is expected to be truthy when pairs are on separate lines when last pair is a keyword splat is expected to be falsey when both pairs are explicit pairs is expected to be falsey when both pairs are on the same line when both pairs are explicit pairs is expected to be truthy when both pair is a keyword splat is expected to be truthy #key when using a symbol key is expected to equal true when using a string key is expected to equal true #hash_rocket? when using a hash rocket delimiter is expected to be truthy when using a colon delimiter is expected to be falsey #delimiter when using a colon delimiter is expected to eq ": " is expected to eq ":" when using a hash rocket delimiter is expected to eq "=>" is expected to eq " => " #colon? when using a colon delimiter is expected to be truthy when using a hash rocket delimiter is expected to be falsey RuboCop::AST::ArrayNode #bracketed? with a percent literal is expected to equal true with square brackets is expected to equal true unbracketed is expected to equal nil #values with an empty array is expected to equal true with an array of variables is expected to all be send type is expected to eq 2 with an array of literals is expected to eq 3 is expected to all be literal #each_value without block is expected to equal true with block is expected to eq ["(int 1)", "(int 2)", "(int 3)"] is expected to equal true #percent_literal? with square brackets is expected to be falsey is expected to be falsey is expected to be falsey with a string percent literal is expected to be truthy is expected to be truthy is expected to be falsey with a symbol percent literal is expected to be truthy is expected to be falsey is expected to be truthy #square_brackets? with square brackets is expected to be truthy with a percent literal is expected to be falsey .new is expected to equal true RuboCop::AST::ForNode #keyword is expected to eq "for" #collection is expected to equal true #post_condition_loop? is expected to be falsey #loop_keyword? is expected to be truthy #variable is expected to equal true #do? without a do keyword is expected to be falsey with a do keyword is expected to be truthy #void_context? without a do keyword is expected to be truthy with a do keyword is expected to be truthy #body is expected to equal true .new is expected to equal true RuboCop::AST::ClassNode #identifier is expected to equal true #body with a multi-expression body is expected to equal true with an empty body is expected to equal nil with a single expression body is expected to equal true #parent_class when no parent class is specified is expected to equal nil when a parent class is specified is expected to equal true .new is expected to equal true RuboCop::AST::KeywordSplatNode .new is expected to equal true #colon? is expected to be falsey #key_delta with alignment set to :right when using hash rocket delimiters when keyword splat is ahead is expected to eq 0 when keyword splat is aligned is expected to eq 0 when keyword splat is behind is expected to eq 0 when keyword splat is on the same line is expected to eq 0 when using colon delimiters when keyword splat is aligned is expected to eq 0 when keyword splat is on the same line is expected to eq 0 when keyword splat is behind is expected to eq 0 when keyword splat is ahead is expected to eq 0 with alignment set to :left when using colon delimiters when keyword splat is behind is expected to eq -2 when keyword splat is ahead is expected to eq 2 when keyword splat is aligned is expected to eq 0 when keyword splat is on the same line is expected to eq 0 when using hash rocket delimiters when keyword splat is aligned is expected to eq 0 when keyword splat is ahead is expected to eq 2 when keyword splat is behind is expected to eq -2 when keyword splat is on the same line is expected to eq 0 #hash_rocket? is expected to be falsey #operator is expected to eq "**" #value_delta when using colon delimiters when keyword splat is behind is expected to eq 0 when keyword splat is left aligned is expected to eq 0 when keyword splat is on the same line is expected to eq 0 when keyword splat is ahead is expected to eq 0 when using hash rocket delimiters when keyword splat is left aligned is expected to eq 0 when keyword splat is behind is expected to eq 0 when keyword splat is on the same line is expected to eq 0 when keyword splat is ahead is expected to eq 0 #key is expected to eq s(:kwsplat, s(:send, nil, :foo)) #same_line? when both pairs are on the same line is expected to be truthy when pairs are on separate lines is expected to be falsey when a multiline pair shares the same line is expected to be truthy is expected to be truthy #value is expected to eq s(:kwsplat, s(:send, nil, :foo)) RuboCop::AST::StrNode #heredoc? with a heredoc is expected to equal true with a string with interpolation is expected to equal false with a normal string is expected to equal false .new with a heredoc is expected to equal true with a string with interpolation is expected to equal true with a normal string is expected to equal true RuboCop::AST::WhileNode #post_condition_loop? with a modifier while is expected to be truthy with a statement while is expected to be falsey .new with a modifier while is expected to equal true with a statement while is expected to equal true #keyword is expected to eq "while" #inverse_keyword is expected to eq "until" #do? without a do keyword is expected to be falsey with a do keyword is expected to be truthy #loop_keyword? with a modifier while is expected to be truthy with a statement while is expected to be truthy RuboCop::AST::EnsureNode #body is expected to equal true .new is expected to equal true RuboCop::AST::ProcessedSource valid_syntax? when the source is valid but has some warning diagnostics returns true when the source itself is valid encoding but includes strange encoding literals that are accepted by MRI returns true when a line starts with an integer literal tokenizes the source correctly when the source is invalid returns false when the source is completely valid returns true when the source could not be parsed due to encoding error returns false #blank? with source of no content returns true with source with content returns false #file_path returns file path #following_line returns source of line after token #lines is an array contains lines as string without linefeed has same number of elements as line count #start_with? with present source returns false when passed string that does not start source returns true when passed string that starts source with blank source returns false #tokens has an array of tokens #preceding_line returns source of line before token #parser_error when the source could not be parsed due to encoding error returns the error when the source lacks encoding comment and is really utf-8 encoded but has been read as US-ASCII is nil when the source was properly parsed is nil #comments is an array of comments when the source is invalid returns [] #[] when an index is passed returns the line when a range is passed returns the array of lines when start index and length are passed returns the array of lines .from_file raises a Errno::ENOENT when the file does not exist when the file exists returns an instance of ProcessedSource sets the file path to the instance's #path token enumerables #find_token yields nil when there is no match yields correct token #each_token yields all tokens #buffer is a source buffer #ast is the root node of AST with heavily commented source #each_comment_in_lines yields the comments #contains_comment? provided source_range on comment line is expected to equal true provided source_range on line with comment is expected to equal true provided source_range on line without comment is expected to equal false provided a multiline source_range with at least one line with comment is expected to equal true #each_comment yields all comments #line_with_comment? returns true for lines with comments returns false for lines without comments #comment_at_line returns the comment at the given line number returns nil if line has no comment #comments_before_line returns comments on or before given line #find_comment yields correct comment yields nil when there is no match #path is the path passed to .new RuboCop::AST::IntNode .new is expected to be truthy #value is expected to eq 10 #sign? explicit positive int is expected to be truthy explicit negative int is expected to be truthy RuboCop::AST::YieldNode #block_literal? is expected to be falsey #block_node is expected to equal true #splat_argument? with a splat argument is expected to be truthy with no arguments is expected to be falsey with regular arguments is expected to be falsey with mixed arguments is expected to be truthy #operator_method? is expected to be falsey #command? when argument is a symbol is expected to be truthy when argument is a string is expected to be truthy #self_receiver? is expected to be falsey #camel_case_method? is expected to be falsey #double_colon? is expected to be falsey #last_argument with multiple mixed arguments is expected to equal true with multiple literal arguments is expected to equal true with a single literal argument is expected to equal true with no arguments is expected to equal true with a single splat argument is expected to equal true #method_name is expected to eq :yield #macro? is expected to be falsey #dot? is expected to be falsey #receiver is expected to equal true #setter_method? is expected to be falsey #predicate_method? is expected to be falsey #implicit_call? is expected to be falsey #method? when message does not match when argument is a symbol is expected to be falsey when argument is a string is expected to be falsey when message matches when argument is a symbol is expected to be truthy when argument is a string is expected to be truthy #bang_method? is expected to be falsey .new is expected to equal true #arguments? with a single splat argument is expected to be truthy with no arguments is expected to be falsey with a single literal argument is expected to be truthy with multiple literal arguments is expected to be truthy with multiple mixed arguments is expected to be truthy #const_receiver? is expected to be falsey #parenthesized? with arguments when using parentheses is expected to be truthy when not using parentheses is expected to be falsey with no arguments when not using parentheses is expected to be falsey when using parentheses is expected to be truthy #assignment_method? is expected to be falsey #comparison_method? is expected to be falsey #arguments with a single splat argument is expected to eq 1 with multiple literal arguments is expected to eq 2 with no arguments is expected to equal true with a single literal argument is expected to eq 1 with multiple mixed arguments is expected to eq 2 #block_argument? is expected to be falsey #first_argument with multiple literal arguments is expected to equal true with no arguments is expected to equal true with a single splat argument is expected to equal true with multiple mixed arguments is expected to equal true with a single literal argument is expected to equal true RuboCop::AST::CaseNode #branches when there is no else keyword returns only then when bodies when there is an else returns all the bodies with an empty else returns all the bodies when compared to an IfNode returns the same #else_branch #else? without an else statement is expected to equal true with an else statement is expected to equal true #when_branches is expected to eq 3 is expected to all be when type #else? with an else statement is expected to be truthy without an else statement is expected to be falsey #keyword is expected to eq "case" #each_when when passed a block yields all the conditions when not passed a block is expected to equal true .new is expected to equal true RuboCop::AST::ResbodyNode #exception_variable when an exception variable is not given is expected to equal nil for an explicit rescue is expected to eq "ex" for an implicit rescue is expected to eq "ex" #body is expected to equal true .new is expected to equal true RuboCop::AST::Node #recursive_basic_literal? behaves like non literal returns false for `{ :sym => some_method_call }` behaves like literal returns true for `!true` behaves like literal returns true for `false` behaves like literal returns true for `(false && true)` behaves like literal returns true for `%r{abx}ixo` behaves like literal returns true for `/./` behaves like non literal returns false for `(x or false)` behaves like literal returns true for `(1)` behaves like non literal returns false for `(x == false)` behaves like literal returns true for `1` behaves like non literal returns false for `some_method_call` behaves like non literal returns false for `%r{abx#{foo}}ixo` behaves like non literal returns false for `(x && false)` behaves like literal returns true for `{ :a => 1, :b => 2 }` behaves like literal returns true for `(false or true)` behaves like non literal returns false for `/.#{some_method_call}/` behaves like non literal returns false for `some_method_call(x, y)` behaves like non literal returns false for `[some_method_call]` behaves like literal returns true for `"#{2}"` behaves like non literal returns false for `{ some_method_call => :sym }` behaves like literal returns true for `'str'` behaves like literal returns true for `nil` behaves like literal returns true for `{ a: 1, b: 2 }` behaves like literal returns true for `[1, 2, 3]` behaves like literal returns true for `1.0` behaves like literal returns true for `(false <=> true)` #argument_type? method arguments returns true for all argument types block arguments returns true for all argument types #module_definition? nested modules matches namespaced modules matches with ::ModuleName matches with Module.new matches using module keyword matches prepend Module.new matches included module definition matches #class_constructor? class definition with a block matches module definition with a block matches class definition does not match class definition on outer scope matches #struct_constructor? ::Struct matches struct definition without block does not match struct definition with a block matches #sibling_index returns its sibling index #class_definition? with self singleton class matches without inheritance matches with object singleton class matches namespaced class matches with inheritance matches with Struct matches with Class.new matches with ::ClassName matches constant defined as Struct without block does not match #pure? for a regexp with interpolated segments returns false with no interpolation returns true with options returns true for an integer literal returns true for a gvar assignment returns false for a method call returns false for a module definition returns false for a class definition returns false for an array literal which contains a method call returns false with only literal children returns true for an lvar assignment returns false for a nested if where one branch contains a method call returns false where the innermost descendants are local vars and literals returns true where one branch contains an assignment statement returns false for a cvar assignment returns false for an ivar assignment returns false for a hash literal with only literal children returns true which contains a method call returns false #value_used? within an array literal at the top level is always false assigned to an ivar is always true within an if...else..end node at the top level is true only for the condition nested in a method call is always true at the top level is false within a class definition node is always true within a method call node is always true within a singleton class node is always true within a while node is true only for the condition at the end of a block is always true within a module definition node is always true RuboCop::AST::SuperNode #command? when argument is a string is expected to be truthy when argument is a symbol is expected to be truthy #comparison_method? is expected to be falsey #receiver is expected to equal true #arguments with no arguments is expected to equal true with multiple mixed arguments is expected to eq 2 with multiple literal arguments is expected to eq 2 with a single literal argument is expected to eq 1 with a single splat argument is expected to eq 1 #double_colon? is expected to be falsey #assignment_method? is expected to be falsey #const_receiver? is expected to be falsey #camel_case_method? is expected to be falsey #implicit_call? is expected to be falsey #operator_method? is expected to be falsey #splat_argument? with no arguments is expected to be falsey with a splat argument is expected to be truthy with mixed arguments is expected to be truthy with regular arguments is expected to be falsey #dot? is expected to be falsey #first_argument with multiple mixed arguments is expected to equal true with a single splat argument is expected to equal true with no arguments is expected to equal true with multiple literal arguments is expected to equal true with a single literal argument is expected to equal true #block_literal? with no block is expected to be falsey with a block argument is expected to be falsey with a block literal is expected to be truthy #setter_method? is expected to be falsey .new with a zsuper node is expected to equal true with a super node is expected to equal true #arguments? with multiple literal arguments is expected to be truthy with a single literal argument is expected to be truthy with no arguments is expected to be falsey with a single splat argument is expected to be truthy with multiple mixed arguments is expected to be truthy #method_name is expected to eq :super #bang_method? is expected to be falsey #parenthesized? with arguments when using parentheses is expected to be truthy when not using parentheses is expected to be falsey with no arguments when using parentheses is expected to be truthy when not using parentheses is expected to be falsey #last_argument with no arguments is expected to equal true with multiple mixed arguments is expected to equal true with multiple literal arguments is expected to equal true with a single splat argument is expected to equal true with a single literal argument is expected to equal true #macro? is expected to be falsey #block_argument? with no arguments is expected to be falsey with regular arguments is expected to be falsey with mixed arguments is expected to be truthy with a block argument is expected to be truthy #method? when message matches when argument is a symbol is expected to be truthy when argument is a string is expected to be truthy when message does not match when argument is a symbol is expected to be falsey when argument is a string is expected to be falsey #self_receiver? is expected to be falsey #block_node with a block literal is expected to equal true with a block argument is expected to equal true with no block is expected to equal true #predicate_method? is expected to be falsey RuboCop::AST::IfNode #nested_conditional? with nested ternary operators when nested in the falsey branch is expected to be truthy when nested in the truthy branch is expected to be truthy with nested conditionals in else clause is expected to be truthy with nested conditionals in if clause is expected to be truthy with nested conditionals in elsif clause is expected to be truthy with no nested conditionals is expected to be falsey #else_branch with a ternary operator is expected to equal true with an if statement is expected to equal true with an unless statement is expected to equal true #else? without an else statement is expected to be falsey with an elsif statement is expected to be truthy #ternary? with an if statement is expected to be falsey with a ternary operator is expected to be truthy with an unless statement is expected to be falsey #if? with an if statement is expected to be truthy with an unless statement is expected to be falsey with a ternary operator is expected to be falsey #if_branch with an if statement is expected to equal true with an unless statement is expected to equal true with a ternary operator is expected to equal true #each_branch when passed a block yields all the branches when not passed a block is expected to equal true #elsif_conditional? with nested ternary operators when nested in the truthy branch is expected to be falsey when nested in the falsey branch is expected to be falsey with nested conditionals in else clause is expected to be falsey with multiple elsif conditionals is expected to be truthy with one elsif conditional is expected to be truthy with nested conditionals in if clause is expected to be falsey #inverse_keyword? with an unless statement is expected to eq "if" with an if statement is expected to eq "unless" with a ternary operator is expected to eq "" #branches with an if statement is expected to eq 1 is expected to all be literal with an unless statement is expected to eq 1 is expected to all be literal with an else statement is expected to eq 2 is expected to all be literal with an elsif statement is expected to eq 3 is expected to all be literal #modifier_form? with a modifier unless statement is expected to be truthy with a modifier if statement is expected to be truthy with a ternary operator is expected to be falsey with a non-modifier unless statement is expected to be falsey with a non-modifier if statement is expected to be falsey #unless? with an unless statement is expected to be truthy with an if statement is expected to be falsey with a ternary operator is expected to be falsey #keyword with a ternary operator is expected to eq "" with an if statement is expected to eq "if" with an unless statement is expected to eq "unless" .new with a regular if statement is expected to equal true with a ternary operator is expected to equal true with a modifier statement is expected to equal true #elsif? without an elsif statement is expected to be falsey with an if statement comtaining an elsif is expected to be falsey with an elsif statement is expected to be truthy RuboCop::AST::DefNode #self_receiver? with a class method definition is expected to be truthy with a singleton method definition is expected to be falsey with an instance method definition is expected to be falsey #operator_method? with a unary operator method is expected to be truthy with a setter method is expected to be falsey with a regular method is expected to be falsey with a binary operator method is expected to be truthy #last_argument with no arguments is expected to equal true with a single keyword argument is expected to equal true with multiple mixed arguments is expected to equal true with a single regular argument is expected to equal true with a single rest argument is expected to equal true with multiple regular arguments is expected to equal true #assignment_method? with a comparison method is expected to be falsey with an assignment method is expected to be truthy with a bracket assignment method is expected to be truthy with a regular method is expected to be falsey #comparison_method? with a comparison method is expected to be truthy with a regular method is expected to be falsey #camel_case_method? with a camel case method is expected to be truthy with a regular method is expected to be falsey #receiver with an instance method definition is expected to equal true with a class method definition is expected to equal true with a singleton method definition is expected to equal true #first_argument with a single keyword argument is expected to equal true with a single rest argument is expected to equal true with a single regular argument is expected to equal true with multiple mixed arguments is expected to equal true with multiple regular arguments is expected to equal true with no arguments is expected to equal true #body with a multi-expression body is expected to equal true with a single expression body is expected to equal true with no body is expected to equal true #block_argument? with a block argument is expected to be truthy with mixed arguments is expected to be truthy with no arguments is expected to be falsey with regular arguments is expected to be falsey #predicate_method? with a regular method is expected to be falsey with a bang method is expected to be falsey with a predicate method is expected to be truthy .new with a def node is expected to equal true with a defs node is expected to equal true when using Ruby 2.7 or newer #argument_forwarding? is expected to be truthy #void_context? with a regular assignment method is expected to be truthy with a regular method is expected to be falsey with a comparison method is expected to be falsey with a bracket assignment method is expected to be truthy with an initializer method is expected to be truthy #rest_argument? with regular arguments is expected to be falsey with mixed arguments is expected to be truthy with a rest argument is expected to be truthy with no arguments is expected to be falsey #method? when message matches when argument is a string is expected to be truthy when argument is a symbol is expected to be truthy when message does not match when argument is a symbol is expected to be falsey when argument is a string is expected to be falsey #method_name with a unary method is expected to eq :-@ with an operator method is expected to eq :== with a plain method is expected to eq :foo with a setter method is expected to eq :foo= #bang_method? with a regular method is expected to be falsey with a bang method is expected to be truthy with a predicate method is expected to be falsey #const_receiver? with a singleton method definition is expected to be truthy with a class method definition is expected to be falsey with an instance method definition is expected to be falsey #arguments with a single rest argument is expected to eq 1 with no arguments is expected to equal true with multiple regular arguments is expected to eq 2 with a single regular argument is expected to eq 1 with argument forwarding is expected to eq 1 with multiple mixed arguments is expected to eq 2 #arguments? with no arguments is expected to be falsey with a single regular argument is expected to be truthy with multiple mixed arguments is expected to be truthy with a single rest argument is expected to be truthy with multiple regular arguments is expected to be truthy with a single keyword argument is expected to be truthy RuboCop::AST::WhenNode #conditions with a single condition is expected to eq 1 is expected to all be literal with a multiple conditions is expected to eq 3 is expected to all be literal #then? without a then keyword is expected to be falsey with a then keyword is expected to be truthy #branch_index is expected to eq 2 is expected to eq 1 is expected to eq 0 .new is expected to equal true #body without a then keyword is expected to equal true with a then keyword is expected to equal true #each_condition when passed a block yields all the conditions when not passed a block is expected to equal true RuboCop::AST::OrNode #inverse_operator with a logical or node is expected to eq "&&" with a semantic or node is expected to eq "and" #rhs with a logical or node is expected to equal true with a semantic or node is expected to equal true .new with a logical or node is expected to equal true with a semantic or node is expected to equal true #logical_operator? with a logical or node is expected to equal true with a semantic or node is expected to equal false #alternate_operator with a semantic or node is expected to eq "||" with a logical or node is expected to eq "or" #lhs with a semantic or node is expected to equal true with a logical or node is expected to equal true #operator with a semantic or node is expected to eq "or" with a logical or node is expected to eq "||" #semantic_operator? with a logical or node is expected to equal false with a semantic or node is expected to equal true RuboCop::AST::RegexpNode #multiline_mode? with only m option is expected to equal true with no options is expected to equal false with other options is expected to equal false with m and other options is expected to equal true #ignore_case? with no options is expected to equal false with i and other options is expected to equal true with only i option is expected to equal true with other options is expected to equal false #single_interpolation? with no options is expected to equal false with o and other options is expected to equal true with other options is expected to equal false with only o option is expected to equal true #no_encoding? with n and other options is expected to equal true with no options is expected to equal false with only n option is expected to equal true with other options is expected to equal false #to_regexp with a regexp without option is expected to eq /.+/ with a regexp with an "o" option is expected to eq "/abc/i" with a regexp with option is expected to eq /.+/mix with an empty regexp with option is expected to eq //ix with a multi-line regexp with option is expected to eq / .+ /ix with a multi-line regexp without option is expected to eq / .+ / with an empty regexp is expected to eq // #delimiters with %r{-delimiters is expected to eq ["{", "}"] with /-delimiters is expected to eq ["/", "/"] with multi-line %r{-delimiters is expected to eq ["{", "}"] with %r<-delimiters is expected to eq ["<", ">"] with %r/-delimiters is expected to eq ["/", "/"] #regopt with an empty regexp is expected to equal true is expected to equal true with a multi-line regexp with option is expected to eq [:i, :m, :x] is expected to equal true with an empty regexp with option is expected to equal true is expected to eq [:i, :x] with a regexp with option is expected to eq [:i, :m, :x] is expected to equal true with a regexp without option is expected to equal true is expected to equal true with a multi-line regexp without option is expected to equal true is expected to equal true #slash_literal? with multi-line %r{-delimiters is expected to eq false with %r{-delimiters is expected to eq false with %r<-delimiters is expected to eq false with %r/-delimiters is expected to eq false with /-delimiters is expected to eq true #interpolation? with no interpolation returns false is expected to eq false with regexp quote is expected to eq true with direct variable interpoation is expected to eq true #content with a multi-line regexp with option is expected to eq "\n.+\n" with an empty regexp is expected to eq "" with a regexp with option is expected to eq ".+" with an empty regexp with option is expected to eq "" with a regexp without option is expected to eq ".+" with a multi-line regexp without option is expected to eq "\n.+\n" #percent_r_literal? with %r{-delimiters is expected to eq true with %r<-delimiters is expected to eq true with multi-line %r{-delimiters is expected to eq true with %r/-delimiters is expected to eq true with /-delimiters is expected to eq false #extended? with other options is expected to equal false with only x option is expected to equal true with no options is expected to equal false with x and other options is expected to equal true .new is expected to equal true #delimiter? with %r{-delimiters is expected to eq false is expected to eq false is expected to eq false is expected to eq false is expected to eq false is expected to eq true is expected to eq false is expected to eq true with multi-line %r{-delimiters is expected to eq true is expected to eq false is expected to eq true is expected to eq false is expected to eq false is expected to eq false is expected to eq false is expected to eq false with /-delimiters is expected to eq true is expected to eq false with %r/-delimiters is expected to eq false is expected to eq false is expected to eq false is expected to eq true is expected to eq false is expected to eq false is expected to eq false with %r<-delimiters is expected to eq true is expected to eq false is expected to eq false is expected to eq true is expected to eq false is expected to eq false is expected to eq false is expected to eq false is expected to eq false is expected to eq false is expected to eq false RuboCop::AST::HashNode #pairs with a hash of literals is expected to eq 3 is expected to all be pair type with a hash of variables is expected to all be pair type is expected to eq 2 with an empty hash is expected to equal true #mixed_delimiters? when all pairs are using a colon delimiter is expected to be falsey when all pairs are using a hash rocket delimiter is expected to be falsey when pairs are using different delimiters is expected to be truthy #each_pair when passed a block yields all the pairs when not passed a block is expected to equal true #empty? with an empty hash is expected to equal true with a hash containing pairs is expected to equal false with a hash containing a keyword splat is expected to equal false #each_key when not passed a block is expected to equal true when passed a block yields all the pairs #braces? as an argument with braces is expected to be truthy as an argument with no braces is expected to be falsey with braces is expected to be truthy #values with a hash with literal values is expected to all be literal is expected to eq 3 with a hash with string keys is expected to eq 2 is expected to all be send type with an empty hash is expected to equal true #each_value when not passed a block is expected to equal true when passed a block yields all the pairs .new is expected to equal true #keys with an empty hash is expected to equal true with a hash with symbol keys is expected to all be sym type is expected to eq 3 with a hash with string keys is expected to eq 2 is expected to all be str type #pairs_on_same_line? with no pairs on the same line is expected to be falsey with some pairs on the same line is expected to be truthy with all pairs on the same line is expected to be truthy RuboCop::AST::LambdaNode #method_name is expected to eq :lambda #arguments is expected to eq 2 #receiver is expected to eq nil RuboCop::AST::Token #column returns index of first char in token range on that line type predicates #left_brace? returns false for non right_bracket tokens returns true for right_bracket tokens #left_array_bracket? returns false for non left_array_bracket tokens returns true for left_array_bracket tokens #right_bracket? returns false for non right_bracket tokens returns true for all right_bracket tokens #end? returns true for end tokens returns false for non end tokens #rescue_modifier? returns true for rescue modifier tokens returns false for non rescue modifier tokens with braces & parens #right_parens? returns false for non right parens tokens returns true for right parens tokens #right_curly_brace? returns true for all right brace tokens returns false for non right brace tokens #left_curly_brace? returns false for non left block brace tokens returns true for left block brace tokens #left_brace? returns true for left hash brace tokens returns false for non left hash brace tokens #left_parens? returns true for left parens tokens returns false for non left parens tokens #left_ref_bracket? returns true for left_ref_bracket tokens returns false for non left_ref_bracket tokens #comma? returns true for comma tokens returns false for non comma tokens #comment? returns false for non comment tokens returns true for comment tokens #equals_sign? returns false for non equals sign tokens returns true for equals sign tokens #semicolon? returns false for non semicolon tokens returns true for semicolon tokens #left_bracket? returns true for all left_bracket tokens returns false for non left_bracket tokens .from_parser_token returns a #to_s useful for debugging sets parser token's type to rubocop token's type sets parser token's text to rubocop token's text sets parser token's range to rubocop token's pos #line returns line of token #to_s returns string of token data #end_pos returns index of last char in token range of entire source #space_after returns truthy MatchData when there is a space after token returns nil when there is not a space after token #space_before returns truthy MatchData when there is a space before token returns nil when it is on the first line returns nil when there is not a space before token #begin_pos returns index of first char in token range of entire source RuboCop::AST::ArgsNode .new with a method definition is expected to equal true with a block is expected to equal true with a lambda literal is expected to equal true #empty_and_without_delimiters? with arguments with a lambda literal is expected to equal false with a method definition is expected to equal false with empty arguments with a lambda literal is expected to equal true with a block is expected to equal true with a method definition is expected to equal true with delimiters with a block is expected to equal false with a lambda literal is expected to equal false with a method definition is expected to equal false RuboCop::AST::SymbolNode .new with a symbol node is expected to equal true #value is expected to eq :foo RuboCop::AST::AliasNode .new is expected to equal true #new_identifier is expected to equal true is expected to eq :foo #old_identifier is expected to eq :bar is expected to equal true RuboCop::AST::ReturnNode behaves like wrapped arguments node .new with arguments is expected to equal true without arguments is expected to equal true #arguments with a single argument and braces is expected to eq 1 with a single argument is expected to eq 1 with no arguments is expected to equal true with a single splat argument is expected to eq 1 with no arguments and braces is expected to equal true with multiple literal arguments is expected to eq 2 RuboCop::AST::FloatNode #value is expected to eq 1.5 #sign? explicit negative float is expected to be truthy explicit positive float is expected to be truthy .new is expected to be truthy RuboCop::AST::ForwardArgsNode when using Ruby 2.7 or newer #to_a is expected to contain exactly (be forward arg type) RuboCop::AST::NextNode behaves like wrapped arguments node .new without arguments is expected to equal true with arguments is expected to equal true #arguments with no arguments and braces is expected to equal true with multiple literal arguments is expected to eq 2 with a single argument is expected to eq 1 with a single argument and braces is expected to eq 1 with a single splat argument is expected to eq 1 with no arguments is expected to equal true RuboCop::AST::BlockNode #lambda? when block belongs to a non-lambda method is expected to be falsey when block belongs to a method lambda is expected to be truthy when block belongs to a stabby lambda is expected to be truthy #keywords? when enclosed in braces is expected to be falsey when enclosed in do-end keywords is expected to be truthy #delimiters when enclosed in braces is expected to eq ["{", "}"] when enclosed in do-end keywords is expected to eq ["do", "end"] #opening_delimiter when enclosed in do-end keywords is expected to eq "do" when enclosed in braces is expected to eq "{" .new is expected to equal true #closing_delimiter when enclosed in do-end keywords is expected to eq "end" when enclosed in braces is expected to eq "}" #braces? when enclosed in do-end keywords is expected to be falsey when enclosed in braces is expected to be truthy #arguments? with a single splat argument is expected to be truthy with multiple mixed arguments is expected to be truthy with a single argument is expected to be truthy >= Ruby 2.7 using numbered parameters is expected to equal false with no arguments is expected to be falsey #void_context? when block method is not each is expected to be falsey when block method is each is expected to be truthy when block method is tap is expected to be truthy #single_line? when block is on several lines is expected to be falsey when block is on a single line is expected to be truthy #arguments >= Ruby 2.7 using numbered parameters is expected to equal true with a single literal argument is expected to eq 1 with a single splat argument is expected to eq 1 with multiple mixed arguments is expected to eq 2 with no arguments is expected to equal true #multiline? when block is on several lines is expected to be truthy when block is on a single line is expected to be falsey RuboCop::AST::BreakNode behaves like wrapped arguments node #arguments with a single argument and braces is expected to eq 1 with a single splat argument is expected to eq 1 with no arguments and braces is expected to equal true with no arguments is expected to equal true with a single argument is expected to eq 1 with multiple literal arguments is expected to eq 2 .new without arguments is expected to equal true with arguments is expected to equal true RuboCop::AST::UntilNode #loop_keyword? with a statement until is expected to be truthy with a modifier until is expected to be truthy .new with a statement until is expected to equal true with a modifier until is expected to equal true #inverse_keyword is expected to eq "while" #keyword is expected to eq "until" #do? with a do keyword is expected to be truthy without a do keyword is expected to be falsey #post_condition_loop? with a modifier until is expected to be truthy with a statement until is expected to be falsey Finished in 3.3 seconds (files took 1.67 seconds to load) 1401 examples, 0 failures Randomized with seed 18025 ┌──────────────────────────────────────────────────────────────────────────────┐ │ dh_ruby --install finished │ └──────────────────────────────────────────────────────────────────────────────┘ dh_installdocs -i -O--buildsystem=ruby dh_ruby_fixdocs -i -O--buildsystem=ruby dh_installchangelogs -i -O--buildsystem=ruby dh_installsystemduser -i -O--buildsystem=ruby dh_perl -i -O--buildsystem=ruby dh_link -i -O--buildsystem=ruby dh_strip_nondeterminism -i -O--buildsystem=ruby dh_compress -X.rb -i -O--buildsystem=ruby dh_fixperms -i -O--buildsystem=ruby dh_missing -i -O--buildsystem=ruby dh_ruby_fixdepends -i -O--buildsystem=ruby dh_installdeb -i -O--buildsystem=ruby dh_gencontrol -i -O--buildsystem=ruby dpkg-gencontrol: warning: Depends field of package ruby-rubocop-ast: substitution variable ${shlibs:Depends} used, but is not defined dh_md5sums -i -O--buildsystem=ruby dh_builddeb -i -O--buildsystem=ruby dpkg-deb: building package 'ruby-rubocop-ast' in '../ruby-rubocop-ast_0.3.0+dfsg-1_all.deb'. dpkg-genbuildinfo --build=all dpkg-genchanges --build=all >../ruby-rubocop-ast_0.3.0+dfsg-1_all.changes dpkg-genchanges: info: binary-only arch-indep upload (source code and arch-specific packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/ruby-rubocop-ast-Lnu8Ky /tmp/ruby-rubocop-ast-0.3.0+dfsg-190qa2qwd I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.qRApwZKdVm... I: success in 319.1725 seconds md5: ruby-rubocop-ast_0.3.0+dfsg-1_all.deb: OK sha1: ruby-rubocop-ast_0.3.0+dfsg-1_all.deb: OK sha256: ruby-rubocop-ast_0.3.0+dfsg-1_all.deb: OK Checksums: OK