Skip to content

[FIX] review 반영. scenario 맞춰서 수정#22

Merged
wnsdud6992 merged 1 commit intomasterfrom
feature_Script1_1
May 19, 2025
Merged

[FIX] review 반영. scenario 맞춰서 수정#22
wnsdud6992 merged 1 commit intomasterfrom
feature_Script1_1

Conversation

@wnsdud6992
Copy link
Copy Markdown
Owner

🔍 개요,
제공된 시나리오에 맞춰 구현 내용 변경

✅ 작업 내용

기존 5번 실행시 write -> read 진행했는데
5개 write 이후 5개 read하는 형식으로 변경

Issue Link #3

⚠️ 의존성 (참고 사항),


void TestShell::Script1() {
for (int loopCnt = 0; loopCnt < Script1_TotalLoopCount; ++loopCnt) {
for (int iter = 0; iter < Script1_OnceLoopCount; ++iter) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존에도 깔끔했는데 더 가독성이 높게 수정된 것 같네요~! 👍

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

함수에 대한 짦은 설명이 있다면 더 좋을 것 같아요~!

Copy link
Copy Markdown
Collaborator

@MK-Son MK-Son left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

까다로운 시나리오 이네요, 구현하느라 고생하셨습니다!

command_param.push_back(writevalue);
write(command_param);
void TestShell::writeFive(int loopCnt){
for (int iter = 0; iter < Script1_OnceLoopCount; ++iter) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OnceLoopCount와 loopCnt 변수 명이 조금 혼란스러운것 같습니다
조금 더 직관적인 아이디어를 강구해봐야겠네요! ㅠ

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그러니까요.. 추후에 좀더 가독성있는 코드로 변경이 필요해 보입니다 ㅠㅠ

unsigned int expectedValue = ScriptTest_Value + loopCnt;

std::vector<unsigned int> readAddress{ address };
unsigned int actualValue = read(readAddress);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestShell에서 구현해둔 read/write 메서드를 바로 사용하려고 하니, vector로 다시 넣어야 하는 단점이 있긴하네요,
리펙토링 때 집당지성으로 아이디어 논의 후 개선 하면 좋을것 같습니다!

@wnsdud6992 wnsdud6992 merged commit ce0fae8 into master May 19, 2025
@wnsdud6992 wnsdud6992 deleted the feature_Script1_1 branch May 19, 2025 06:09
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.

3 participants