Page MenuHomePhabricator

[services] Remove path imports in tests
ClosedPublic

Authored by michal on Sep 19 2022, 4:06 AM.
Tags
None
Referenced Files
F3524139: D5171.diff
Mon, Dec 23, 11:34 AM
Unknown Object (File)
Mon, Dec 16, 5:37 AM
Unknown Object (File)
Nov 22 2024, 9:24 AM
Unknown Object (File)
Nov 22 2024, 9:24 AM
Unknown Object (File)
Nov 22 2024, 9:24 AM
Unknown Object (File)
Nov 22 2024, 9:23 AM
Unknown Object (File)
Nov 22 2024, 9:20 AM
Unknown Object (File)
Nov 1 2024, 3:54 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