Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zgc/ditorch refactor #76

Merged
merged 15 commits into from
Oct 31, 2024
Merged

Zgc/ditorch refactor #76

merged 15 commits into from
Oct 31, 2024

Conversation

zhaoguochun1995
Copy link
Collaborator

@zhaoguochun1995 zhaoguochun1995 commented Oct 30, 2024

  1. 重构ditorch目录结构:为不同设备设置了独立的文件夹,特定设备的适配代码放在特定目录下,避免不同设备间互相影响
  2. 不再import 时随意mock, 而统一设置了一个mock函数,各个设备所有mock的操作都包装在各自模块的mock函数内,统一在最外层调用mock,避免随意mock导致代码可读性差,避免mock行为不可控

@zhaoguochun1995 zhaoguochun1995 force-pushed the zgc/ditorch_refactor branch 5 times, most recently from 93f5236 to afd73aa Compare October 30, 2024 06:53
@zhaoguochun1995 zhaoguochun1995 merged commit 46473f5 into main Oct 31, 2024
13 checks passed
@zhaoguochun1995 zhaoguochun1995 deleted the zgc/ditorch_refactor branch October 31, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants