-
Notifications
You must be signed in to change notification settings - Fork 3
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
[#145] handle_insert_query 테스트 리팩토링 및 버그 수정, 테스트케이스 추가 #147
Conversation
Pull reviewers statsStats of the last 14 days for rrdb:
|
✅ Total Coverage: 48.62% |
✅ Total Coverage: 48.85% |
✅ Total Coverage: 48.92% |
✅ Total Coverage: 48.92% |
✅ Total Coverage: 48.92% |
✅ Total Coverage: 49.01% |
✅ Total Coverage: 49.01% |
✅ Total Coverage: 49.01% |
✅ Total Coverage: 49.04% |
"E0408 expected ')'. but your input word is '{:?}'", | ||
current_token | ||
))); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
불필요한 지연처리 빼고 match절에서 즉시리턴
@@ -23,6 +23,10 @@ impl Parser { | |||
} | |||
|
|||
// INTO 토큰 삼키기 | |||
if !self.has_next_token() { | |||
return Err(ParsingError::wrap("E0410 need more tokens")); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
패닉케이스 제거
@@ -220,7 +214,7 @@ impl Parser { | |||
} | |||
|
|||
// 쉼표가 있으면 삼키기 | |||
if self.pick_next_token() == Token::Comma { | |||
if self.has_next_token() && self.pick_next_token() == Token::Comma { | |||
self.get_next_token(); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
버그 수정
설명요거 없으시면 지워주세요 ㅎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good 👍
resolves: #145
설명
테스트코드 추가