You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/test/integration-test/src/tests
Tamir Duberstein 5bf66d6127
integration-test: appease clippy
Before this change:
```
warning: manual saturating arithmetic
   --> test/integration-test/src/tests/ring_buf.rs:235:9
    |
235 | /         data.len()
236 | |             .checked_sub(RING_BUF_MAX_ENTRIES - 1)
237 | |             .unwrap_or_default(),
    | |________________________________^ help: consider using `saturating_sub`: `data.len().saturating_sub(RING_BUF_MAX_ENTRIES - 1)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic
    = note: `-W clippy::manual-saturating-arithmetic` implied by `-W clippy::all`
    = help: to override `-W clippy::all` add `#[allow(clippy::manual_saturating_arithmetic)]`

warning: manual saturating arithmetic
   --> test/integration-test/src/tests/ring_buf.rs:244:20
    |
244 |     let min_seen = max_seen.checked_sub(max_dropped).unwrap_or_default();
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `saturating_sub`: `max_seen.saturating_sub(max_dropped)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic

warning: manual saturating arithmetic
   --> test/integration-test/src/tests/ring_buf.rs:245:24
    |
245 |     let min_rejected = max_rejected.checked_sub(dropped).unwrap_or_default();
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `saturating_sub`: `max_rejected.saturating_sub(dropped)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_saturating_arithmetic

warning: `integration-test` (lib test) generated 3 warnings (run `cargo clippy --fix --lib -p integration-test --tests` to apply 3 suggestions)
```
5 days ago
..
array.rs lint all crates; enable strict pointer lints 3 months ago
bpf_probe_read.rs lint all crates; enable strict pointer lints 3 months ago
btf_relocations.rs integration-test: remove skips 2 months ago
elf.rs integration-test: add missing `test_log` decorator 6 months ago
feature_probe.rs aya: make ProgramInfo a proper enum 2 months ago
info.rs aya: ProbeKind is Entry/Return 1 month ago
iter.rs integration-test: add missing `test_log` decorator 6 months ago
linear_data_structures.rs lint all crates; enable strict pointer lints 3 months ago
load.rs aya: ProbeKind is Entry/Return 1 month ago
log.rs aya: rename `set_` methods on `EbpfLoader` 2 months ago
lsm.rs Skip `lsm_cgroup` when loading fails 2 months ago
map_pin.rs aya: add Map::from_map_data() for pinned map access 3 months ago
maps_disjoint.rs feat: add `Ebpf::maps_disjoint_mut` 1 month ago
perf_event_bp.rs perf_event: support hardware breakpoints 1 month ago
raw_tracepoint.rs integration-test: add missing `test_log` decorator 6 months ago
rbpf.rs *: downcase log strings 3 months ago
relocations.rs lint all crates; enable strict pointer lints 3 months ago
ring_buf.rs integration-test: appease clippy 5 days ago
sk_storage.rs aya,ebpf: add BPF_MAP_TYPE_SK_STORAGE 3 months ago
smoke.rs integration-test: add missing `test_log` decorator 6 months ago
strncmp.rs Skip `bpf_strncmp` on kernel < 5.17 2 months ago
tcx.rs integration-test: add missing `test_log` decorator 6 months ago
uprobe_cookie.rs aya: rename `set_` methods on `EbpfLoader` 2 months ago
xdp.rs Skip `cpumap_chain` when attachment fails 2 months ago