Page MenuHomePhabricator

[services] Remove path imports in tests
ClosedPublic

Authored by michal on Sep 19 2022, 4:06 AM.
Tags
None
Referenced Files
F1787985: D5171.id16886.diff
Sat, May 18, 11:55 PM
Unknown Object (File)
Wed, May 15, 5:51 PM
Unknown Object (File)
Apr 18 2024, 4:48 PM
Unknown Object (File)
Apr 18 2024, 4:48 PM
Unknown Object (File)
Apr 18 2024, 4:48 PM
Unknown Object (File)
Apr 18 2024, 4:47 PM
Unknown Object (File)
Apr 18 2024, 4:42 PM
Unknown Object (File)
Mar 20 2024, 6:21 AM

Details

Summary

https://linear.app/comm/issue/ENG-1300/[rust]-get-rid-of-import-paths-in-tests
Changes module structure to get rid of #[path=...] attributes. Doesn't change any runtime code, only mod and use statements (and removes a few now unnecessary #[allow(dead_code)]).

  • Added mod.rs to backup and to blob to make them parent modules of the nested files
  • Renamed lib/tools.rs to tools/mod.rs to make it a separate module
Test Plan

cargo test --no-run and check if it compiles

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

otherwise LGTM

services/commtest/tests/backup/add_attachments.rs
1–3 ↗(On Diff #16824)

Instead of "going up a level", we can also say, "start at the root"

This revision now requires changes to proceed.Sep 19 2022, 11:25 AM

Looks great! Agree with @jon on super vs crate.

This revision is now accepted and ready to land.Sep 20 2022, 8:18 AM