[INFO] fetching crate pagebreak 0.9.2... [INFO] testing pagebreak-0.9.2 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate pagebreak 0.9.2 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate pagebreak 0.9.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate pagebreak 0.9.2 [INFO] tweaked toml for crates.io crate pagebreak 0.9.2 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pagebreak 0.9.2 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate pagebreak 0.9.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_syscall v0.2.10 [INFO] [stderr] Downloaded lexiclean v0.0.1 [INFO] [stderr] Downloaded memoffset v0.6.4 [INFO] [stderr] Downloaded phf_generator v0.8.0 [INFO] [stderr] Downloaded kuchiki v0.8.1 [INFO] [stderr] Downloaded rand_hc v0.3.1 [INFO] [stderr] Downloaded crossbeam-epoch v0.9.5 [INFO] [stderr] Downloaded futures-executor v0.3.17 [INFO] [stderr] Downloaded rand v0.8.4 [INFO] [stderr] Downloaded gherkin_rust v0.10.1 [INFO] [stderr] Downloaded peg-runtime v0.6.3 [INFO] [stderr] Downloaded terminal_size v0.1.17 [INFO] [stderr] Downloaded async-trait v0.1.51 [INFO] [stderr] Downloaded cucumber v0.10.2 [INFO] [stderr] Downloaded futures-util v0.3.17 [INFO] [stderr] Downloaded html5ever v0.25.1 [INFO] [stderr] Downloaded pest v2.1.3 [INFO] [stderr] Downloaded itertools v0.10.1 [INFO] [stderr] Downloaded serde_json v1.0.67 [INFO] [stderr] Downloaded syn v1.0.75 [INFO] [stderr] Downloaded ignore v0.4.18 [INFO] [stderr] Downloaded markup5ever v0.10.1 [INFO] [stderr] Downloaded textwrap v0.12.1 [INFO] [stderr] Downloaded thiserror-impl v1.0.28 [INFO] [stderr] Downloaded thiserror v1.0.28 [INFO] [stderr] Downloaded typed-builder v0.7.1 [INFO] [stderr] Downloaded ghost v0.1.2 [INFO] [stderr] Downloaded linked-hash-map v0.5.4 [INFO] [stderr] Downloaded lock_api v0.4.5 [INFO] [stderr] Downloaded string_cache v0.8.1 [INFO] [stderr] Downloaded dtoa-short v0.3.3 [INFO] [stderr] Downloaded console v0.15.0 [INFO] [stderr] Downloaded inflections v1.1.1 [INFO] [stderr] Downloaded peg-macros v0.6.3 [INFO] [stderr] Downloaded peg v0.6.3 [INFO] [stderr] Downloaded inventory v0.1.11 [INFO] [stderr] Downloaded sealed v0.3.0 [INFO] [stderr] Downloaded futures-task v0.3.17 [INFO] [stderr] Downloaded proc-macro-nested v0.1.7 [INFO] [stderr] Downloaded slab v0.4.4 [INFO] [stderr] Downloaded globset v0.4.8 [INFO] [stderr] Downloaded parking_lot_core v0.8.5 [INFO] [stderr] Downloaded thread_local v1.1.3 [INFO] [stderr] Downloaded globwalk v0.8.1 [INFO] [stderr] Downloaded futf v0.1.4 [INFO] [stderr] Downloaded tendril v0.4.2 [INFO] [stderr] Downloaded cssparser v0.27.2 [INFO] [stderr] Downloaded convert_case v0.4.0 [INFO] [stderr] Downloaded rustc_version v0.3.3 [INFO] [stderr] Downloaded derive_more v0.99.16 [INFO] [stderr] Downloaded matches v0.1.9 [INFO] [stderr] Downloaded proc-macro2 v1.0.29 [INFO] [stderr] Downloaded phf_macros v0.8.0 [INFO] [stderr] Downloaded rand_pcg v0.2.1 [INFO] [stderr] Downloaded siphasher v0.3.6 [INFO] [stderr] Downloaded phf_shared v0.8.0 [INFO] [stderr] Downloaded servo_arc v0.1.1 [INFO] [stderr] Downloaded smallvec v1.6.1 [INFO] [stderr] Downloaded thin-slice v0.1.1 [INFO] [stderr] Downloaded libc v0.2.101 [INFO] [stderr] Downloaded inventory-impl v0.1.11 [INFO] [stderr] Downloaded futures-macro v0.3.17 [INFO] [stderr] Downloaded futures-sink v0.3.17 [INFO] [stderr] Downloaded futures v0.3.17 [INFO] [stderr] Downloaded string_cache_codegen v0.5.1 [INFO] [stderr] Downloaded ucd-trie v0.1.3 [INFO] [stderr] Downloaded phf_codegen v0.8.0 [INFO] [stderr] Downloaded nodrop v0.1.14 [INFO] [stderr] Downloaded bstr v0.2.16 [INFO] [stderr] Downloaded phf v0.8.0 [INFO] [stderr] Downloaded cssparser-macros v0.6.0 [INFO] [stderr] Downloaded semver-parser v0.10.2 [INFO] [stderr] Downloaded cucumber-codegen v0.10.2 [INFO] [stderr] Downloaded selectors v0.22.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f49085e188e20d7fd0dccbc78e1c613bb0f376a80eed8b958a29d00f23c69f9d [INFO] running `Command { std: "docker" "start" "-a" "f49085e188e20d7fd0dccbc78e1c613bb0f376a80eed8b958a29d00f23c69f9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f49085e188e20d7fd0dccbc78e1c613bb0f376a80eed8b958a29d00f23c69f9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f49085e188e20d7fd0dccbc78e1c613bb0f376a80eed8b958a29d00f23c69f9d", kill_on_drop: false }` [INFO] [stdout] f49085e188e20d7fd0dccbc78e1c613bb0f376a80eed8b958a29d00f23c69f9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f98c5f986df0c5a48a611407e68346f40f3cd5c9d0ccf901ea111855ad9c5d6 [INFO] running `Command { std: "docker" "start" "-a" "5f98c5f986df0c5a48a611407e68346f40f3cd5c9d0ccf901ea111855ad9c5d6", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling libc v0.2.101 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling siphasher v0.3.6 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling futf v0.1.4 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling tendril v0.4.2 [INFO] [stderr] Compiling dtoa-short v0.3.3 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling servo_arc v0.1.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Compiling thin-slice v0.1.1 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling lexiclean v0.0.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling bstr v0.2.16 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling selectors v0.22.0 [INFO] [stderr] Compiling markup5ever v0.10.1 [INFO] [stderr] Compiling globset v0.4.8 [INFO] [stderr] Compiling string_cache v0.8.1 [INFO] [stderr] Compiling ignore v0.4.18 [INFO] [stderr] Compiling globwalk v0.8.1 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling cssparser v0.27.2 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Compiling cssparser-macros v0.6.0 [INFO] [stderr] Compiling derive_more v0.99.16 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling kuchiki v0.8.1 [INFO] [stderr] Compiling pagebreak v0.9.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/errors.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct PageError { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub code: PageErrorCode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.90s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: html5ever v0.25.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "5f98c5f986df0c5a48a611407e68346f40f3cd5c9d0ccf901ea111855ad9c5d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f98c5f986df0c5a48a611407e68346f40f3cd5c9d0ccf901ea111855ad9c5d6", kill_on_drop: false }` [INFO] [stdout] 5f98c5f986df0c5a48a611407e68346f40f3cd5c9d0ccf901ea111855ad9c5d6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce24db14d7a37f0a50d0858a08d394484f0d9610959787d9c93c2216686b6350 [INFO] running `Command { std: "docker" "start" "-a" "ce24db14d7a37f0a50d0858a08d394484f0d9610959787d9c93c2216686b6350", kill_on_drop: false }` [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling peg-runtime v0.6.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling futures-io v0.3.17 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling thiserror-impl v1.0.28 [INFO] [stderr] Compiling inventory v0.1.11 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling ghost v0.1.2 [INFO] [stderr] Compiling itertools v0.10.1 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling typed-builder v0.7.1 [INFO] [stderr] Compiling inventory-impl v0.1.11 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling textwrap v0.12.1 [INFO] [stderr] Compiling peg-macros v0.6.3 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling sealed v0.3.0 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling console v0.15.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling ignore v0.4.18 [INFO] [stderr] Compiling thiserror v1.0.28 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling selectors v0.22.0 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling markup5ever v0.10.1 [INFO] [stderr] Compiling globwalk v0.8.1 [INFO] [stderr] Compiling cssparser v0.27.2 [INFO] [stderr] Compiling peg v0.6.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling structopt v0.3.25 [INFO] [stderr] Compiling cucumber-codegen v0.10.2 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling kuchiki v0.8.1 [INFO] [stderr] Compiling pagebreak v0.9.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `code` is never read [INFO] [stdout] --> src/errors.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct PageError { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 11 | pub code: PageErrorCode, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling gherkin_rust v0.10.1 [INFO] [stderr] Compiling cucumber v0.10.2 [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 27.15s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: html5ever v0.25.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ce24db14d7a37f0a50d0858a08d394484f0d9610959787d9c93c2216686b6350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce24db14d7a37f0a50d0858a08d394484f0d9610959787d9c93c2216686b6350", kill_on_drop: false }` [INFO] [stdout] ce24db14d7a37f0a50d0858a08d394484f0d9610959787d9c93c2216686b6350 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a6818472d95c59b3c2561fee65b79e90eb3b50c3c8884190ec5b8d71a2aecc2b [INFO] running `Command { std: "docker" "start" "-a" "a6818472d95c59b3c2561fee65b79e90eb3b50c3c8884190ec5b8d71a2aecc2b", kill_on_drop: false }` [INFO] [stderr] warning: field `code` is never read [INFO] [stderr] --> src/errors.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct PageError { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 11 | pub code: PageErrorCode, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `pagebreak` (lib) generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: html5ever v0.25.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pagebreak-26b20a76492ce734) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test state::tests::test_bad_file_url ... ok [INFO] [stdout] test state::tests::test_relative_pagination_urls ... ok [INFO] [stdout] test state::tests::test_get_file_url ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/pagebreak-616ebbe0242cb864) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/cucumber.rs (/opt/rustwide/target/debug/deps/cucumber-2a8c3a52782960fb) [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "red/blue/yellow/index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 3 items on "index.html"; Building 3 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "red/blue/yellow/index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "about.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "about.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stderr] Doc-tests pagebreak [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 2 pages of size 1 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 2 items on "index.html"; Building 1 pages of size 10 [INFO] [stdout] Pagebreak: Found 1 pages with pagination [INFO] [stdout] Pagebreak: Found 5 items on "index.html"; Building 3 pages of size 2 [INFO] [stdout] Feature: Pagination Controls [INFO] [stdout] Scenario: If I run Pagebreak in place, my source files should be updated [INFO] [stdout] ✔ Given I have a "dist/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak with options: [INFO] [stdout] | source | dist | [INFO] [stdout] | output | dist | [INFO] [stdout] ✔ Then I should see "Item 1" in "dist/index.html" [INFO] [stdout] ✔ But I should not see "Item 2" in "dist/index.html" [INFO] [stdout] ✔ And I should see "Item 2" in "dist/page/2/index.html" [INFO] [stdout] Scenario: If I run Pagebreak with a dest, all files should be moved [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ And I have a "source/extra.txt" file with the body: [INFO] [stdout] ✔ And I have a "source/inner/nested/file.md" file with the body: [INFO] [stdout] ✔ And I have a "source/plain.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see "Item 1" in "output/index.html" [INFO] [stdout] ✔ And I should see "Plain" in "output/plain.html" [INFO] [stdout] ✔ And I should see "Extra File" in "output/extra.txt" [INFO] [stdout] ✔ And I should see "# Inner" in "output/inner/nested/file.md" [INFO] [stdout] Scenario: If I run Pagebreak with a dest, the original files should remain [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ And I have a "source/extra.txt" file with the body: [INFO] [stdout] ✔ And I have a "source/inner/nested/file.md" file with the body: [INFO] [stdout] ✔ And I have a "source/plain.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see "Item 1" in "source/index.html" [INFO] [stdout] ✔ And I should see "Plain" in "source/plain.html" [INFO] [stdout] ✔ And I should see "Extra File" in "source/extra.txt" [INFO] [stdout] ✔ And I should see "# Inner" in "source/inner/nested/file.md" [INFO] [stdout] Scenario: If I run Pagebreak in place, existing files should be untouched [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ And I have a "source/extra.txt" file with the body: [INFO] [stdout] ✔ And I have a "source/inner/nested/file.md" file with the body: [INFO] [stdout] ✔ And I have a "source/plain.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak with options: [INFO] [stdout] | source | source | [INFO] [stdout] | output | source | [INFO] [stdout] ✔ Then I should see "Item 1" in "source/index.html" [INFO] [stdout] ✔ And I should see "Plain" in "source/plain.html" [INFO] [stdout] ✔ And I should see "Extra File" in "source/extra.txt" [INFO] [stdout] ✔ And I should see "# Inner" in "source/inner/nested/file.md" [INFO] [stdout] Feature: Pagination Controls [INFO] [stdout] Scenario: If I have pagination controls, they should toggle when next/prev pages exist [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see "Next Page" in "output/index.html" [INFO] [stdout] ✔ And I should see "Next Page" in "output/page/2/index.html" [INFO] [stdout] ✔ And I should see "Previous Page" in "output/page/2/index.html" [INFO] [stdout] ✔ And I should see "Previous Page" in "output/page/3/index.html" [INFO] [stdout] ✔ But I should not see "Previous Page" in "output/index.html" [INFO] [stdout] ✔ And I should not see "Next Page" in "output/page/3/index.html" [INFO] [stdout] Scenario: If I have pagination controls, they should be given the correct hrefs [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/index.html" with the attributes: [INFO] [stdout] | href | page/2/ | [INFO] [stdout] | innerText | Next Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | href | ../3/ | [INFO] [stdout] | innerText | Next Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | href | ../../ | [INFO] [stdout] | innerText | Previous Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/page/3/index.html" with the attributes: [INFO] [stdout] | href | ../2/ | [INFO] [stdout] | innerText | Previous Page | [INFO] [stdout] Scenario: If I have a complex URL structure, my pagination hrefs should still be correct [INFO] [stdout] ✔ Given I have a "source/red/blue/yellow/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/red/blue/yellow/index.html" with the attributes: [INFO] [stdout] | href | ../../page/2/test/ | [INFO] [stdout] | innerText | Next Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/red/page/2/test/index.html" with the attributes: [INFO] [stdout] | href | ../../3/test/ | [INFO] [stdout] | innerText | Next Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/red/page/2/test/index.html" with the attributes: [INFO] [stdout] | href | ../../../blue/yellow/ | [INFO] [stdout] | innerText | Previous Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/red/page/3/test/index.html" with the attributes: [INFO] [stdout] | href | ../../2/test/ | [INFO] [stdout] | innerText | Previous Page | [INFO] [stdout] Scenario: If I have inverse pagination controls, they should hide when next/prev pages exist [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/index.html" with the attributes: [INFO] [stdout] | href | page/2/ | [INFO] [stdout] | innerText | Next Page | [INFO] [stdout] ✔ Then I should see a selector 'span' in "output/index.html" with the attributes: [INFO] [stdout] | innerText | No Previous | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | href | ../../ | [INFO] [stdout] | innerText | Previous Page | [INFO] [stdout] ✔ Then I should see a selector 'span' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | innerText | No Next | [INFO] [stdout] ✔ But I should not see "No Next" in "output/index.html" [INFO] [stdout] ✔ And I should not see "No Previous" in "output/page/2/index.html" [INFO] [stdout] Scenario: Pagination controls with no href should work [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/index.html" with the attributes: [INFO] [stdout] | href | page/2/ | [INFO] [stdout] | innerText | Next Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | href | ../3/ | [INFO] [stdout] | innerText | Next Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | href | ../../ | [INFO] [stdout] | innerText | Previous Page | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/page/3/index.html" with the attributes: [INFO] [stdout] | href | ../2/ | [INFO] [stdout] | innerText | Previous Page | [INFO] [stdout] Feature: Pagination Canonicals [INFO] [stdout] Scenario: By default, URLs in the meta should be updated to the self page [INFO] [stdout] ✔ Given I have a "source/index.html" file with the content: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'link' in "output/index.html" with the attributes: [INFO] [stdout] | href | https://example.com/blog/ | [INFO] [stdout] | rel | canonical | [INFO] [stdout] ✔ Then I should see a selector 'meta' in "output/index.html" with the attributes: [INFO] [stdout] | content | https://example.com/blog/ | [INFO] [stdout] | property | og:url | [INFO] [stdout] ✔ Then I should see a selector 'link' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | href | https://example.com/blog/page/2/ | [INFO] [stdout] | rel | canonical | [INFO] [stdout] ✔ Then I should see a selector 'meta' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | content | https://example.com/blog/page/2/ | [INFO] [stdout] | property | og:url | [INFO] [stdout] Feature: Pagination Fix Relative Links [INFO] [stdout] Scenario: By default, existing relative URLs on the page should be fixed for paginated pages [INFO] [stdout] ✔ Given I have a "source/index.html" file with the content: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'link' in "output/index.html" with the attributes: [INFO] [stdout] | href | styles.css | [INFO] [stdout] | rel | stylesheet | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/index.html" with the attributes: [INFO] [stdout] | href | contact | [INFO] [stdout] | innerText | Contact | [INFO] [stdout] ✔ Then I should see a selector 'link' in "output/2/index.html" with the attributes: [INFO] [stdout] | href | ../styles.css | [INFO] [stdout] | rel | stylesheet | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/2/index.html" with the attributes: [INFO] [stdout] | href | ../contact | [INFO] [stdout] | innerText | Contact | [INFO] [stdout] Scenario: Absolute URLs should remain unchanged in paginated pages [INFO] [stdout] ✔ Given I have a "source/index.html" file with the content: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'link' in "output/index.html" with the attributes: [INFO] [stdout] | href | /styles.css | [INFO] [stdout] | rel | stylesheet | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/index.html" with the attributes: [INFO] [stdout] | href | https://placekitten.com/1142/1600 | [INFO] [stdout] | innerText | Contact | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/index.html" with the attributes: [INFO] [stdout] | href | http://placekitten.com/1142/1600 | [INFO] [stdout] | innerText | Contract | [INFO] [stdout] ✔ Then I should see a selector 'link' in "output/2/index.html" with the attributes: [INFO] [stdout] | href | /styles.css | [INFO] [stdout] | rel | stylesheet | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/2/index.html" with the attributes: [INFO] [stdout] | href | https://placekitten.com/1142/1600 | [INFO] [stdout] | innerText | Contact | [INFO] [stdout] ✔ Then I should see a selector 'a' in "output/2/index.html" with the attributes: [INFO] [stdout] | href | http://placekitten.com/1142/1600 | [INFO] [stdout] | innerText | Contract | [INFO] [stdout] Feature: Pagination Meta [INFO] [stdout] Scenario: By default, title tags and title meta elements should be rewritten [INFO] [stdout] ✔ Given I have a "source/index.html" file with the content: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'meta' in "output/index.html" with the attributes: [INFO] [stdout] | content | OG Title | [INFO] [stdout] | property | og:title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/index.html" with the attributes: [INFO] [stdout] | content | Twitter Title | [INFO] [stdout] | property | twitter:title | [INFO] [stdout] ✔ And I should see a selector 'title' in "output/index.html" with the attributes: [INFO] [stdout] | innerText | Website Title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | content | OG Title \PIPE Page 2 | [INFO] [stdout] | property | og:title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | content | Twitter Title \PIPE Page 2 | [INFO] [stdout] | property | twitter:title | [INFO] [stdout] ✔ And I should see a selector 'title' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | innerText | Website Title \PIPE Page 2 | [INFO] [stdout] Scenario: If I specify a data-pagebreak-meta, I should get custom meta tags [INFO] [stdout] ✔ Given I have a "source/index.html" file with the content: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'meta' in "output/index.html" with the attributes: [INFO] [stdout] | content | OG Title | [INFO] [stdout] | property | og:title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/index.html" with the attributes: [INFO] [stdout] | content | Twitter Title | [INFO] [stdout] | property | twitter:title | [INFO] [stdout] ✔ And I should see a selector 'title' in "output/index.html" with the attributes: [INFO] [stdout] | innerText | Website Title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | content | Page 2 of OG Title | [INFO] [stdout] | property | og:title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | content | Page 2 of Twitter Title | [INFO] [stdout] | property | twitter:title | [INFO] [stdout] ✔ And I should see a selector 'title' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | innerText | Page 2 of Website Title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/3/index.html" with the attributes: [INFO] [stdout] | content | Page 3 of OG Title | [INFO] [stdout] | property | og:title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/3/index.html" with the attributes: [INFO] [stdout] | content | Page 3 of Twitter Title | [INFO] [stdout] | property | twitter:title | [INFO] [stdout] ✔ And I should see a selector 'title' in "output/page/3/index.html" with the attributes: [INFO] [stdout] | innerText | Page 3 of Website Title | [INFO] [stdout] Scenario: If I don't want to rewrite meta tags, I should set a data-pagebreak-meta=":content" [INFO] [stdout] ✔ Given I have a "source/index.html" file with the content: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see a selector 'meta' in "output/index.html" with the attributes: [INFO] [stdout] | content | OG Title | [INFO] [stdout] | property | og:title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/index.html" with the attributes: [INFO] [stdout] | content | Twitter Title | [INFO] [stdout] | property | twitter:title | [INFO] [stdout] ✔ And I should see a selector 'title' in "output/index.html" with the attributes: [INFO] [stdout] | innerText | Website Title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | content | OG Title | [INFO] [stdout] | property | og:title | [INFO] [stdout] ✔ And I should see a selector 'meta' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | content | Twitter Title | [INFO] [stdout] | property | twitter:title | [INFO] [stdout] ✔ And I should see a selector 'title' in "output/page/2/index.html" with the attributes: [INFO] [stdout] | innerText | Website Title | [INFO] [stdout] Feature: Pagination URLs [INFO] [stdout] Scenario: If I specify a data-pagebreak-url, I should get custom URLs [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/index.html" [INFO] [stdout] ✔ And I should see the file "output/pb/2/j/index.html" [INFO] [stdout] ✔ But I should not see the file "output/page/2/index.html" [INFO] [stdout] Scenario: If I want a complex output location, I can use relative URL paths [INFO] [stdout] ✔ Given I have a "source/red/blue/yellow/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/red/blue/yellow/index.html" [INFO] [stdout] ✔ And I should see the file "output/red/green/2/index.html" [INFO] [stdout] Scenario: I should not have to specify a trailing slash on the data-pagebreak-url [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/index.html" [INFO] [stdout] ✔ And I should see the file "output/page/2/index.html" [INFO] [stdout] ✔ But I should not see the file "output/page/2.html" [INFO] [stdout] Scenario: If I provide a named HTML page, I should get a named pagination page [INFO] [stdout] ✔ Given I have a "source/about.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/about.html" [INFO] [stdout] ✔ And I should see the file "output/about/page/2/index.html" [INFO] [stdout] Scenario: If I provide a named HTML page without a trailing slash, I should get a named pagination page [INFO] [stdout] ✔ Given I have a "source/about.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/about.html" [INFO] [stdout] ✔ And I should see the file "output/about/page/2/index.html" [INFO] [stdout] ✔ But I should not see the file "output/about/page/2.html" [INFO] [stdout] Feature: Pagination Labels [INFO] [stdout] Scenario: If I have pagination labels, they should reflect the page number and total [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see '

Page 1 of 2

' in "output/index.html" [INFO] [stdout] ✔ And I should see '

Page 2 of 2

' in "output/page/2/index.html" [INFO] [stdout] Feature: Pagination Pages [INFO] [stdout] Scenario: If I have a data tag, I should get multiple pages [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/index.html" [INFO] [stdout] ✔ And I should see the file "output/page/2/index.html" [INFO] [stdout] ✔ And I should see "Item 1" in "output/index.html" [INFO] [stdout] ✔ And I should see "Item 2" in "output/page/2/index.html" [INFO] [stdout] ✔ But I should not see "Item 2" in "output/index.html" [INFO] [stdout] ✔ And I should not see "Item 1" in "output/page/2/index.html" [INFO] [stdout] Scenario: If my page size is larger than the number of items, I should still get my first page [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/index.html" [INFO] [stdout] ✔ And I should see "Item 1" in "output/index.html" [INFO] [stdout] ✔ And I should see "Item 2" in "output/index.html" [INFO] [stdout] ✔ But I should not see the file "output/page/2/index.html" [INFO] [stdout] Scenario: If my items aren't divisble, my last page should have the remaning items [INFO] [stdout] ✔ Given I have a "source/index.html" file with the body: [INFO] [stdout] ✔ When I run Pagebreak [INFO] [stdout] ✔ Then I should see the file "output/page/3/index.html" [INFO] [stdout] ✔ And I should see "Item 5" in "output/page/3/index.html" [INFO] [stdout] ✔ But I should not see "Item 4" in "output/page/3/index.html" [INFO] [stdout] [Summary] [INFO] [stdout] 8 features [INFO] [stdout] 24 scenarios (24 passed) [INFO] [stdout] 159 steps (159 passed) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a6818472d95c59b3c2561fee65b79e90eb3b50c3c8884190ec5b8d71a2aecc2b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6818472d95c59b3c2561fee65b79e90eb3b50c3c8884190ec5b8d71a2aecc2b", kill_on_drop: false }` [INFO] [stdout] a6818472d95c59b3c2561fee65b79e90eb3b50c3c8884190ec5b8d71a2aecc2b