Closed Rwatana closed 2 weeks ago
@nayuta-ai Please check my PR.
@nayuta-ai I think I have modified the points. Please check my code.
@nayuta-ai
I have incorporated the points you highlighted without splitting the test. Could you please review my code?
@nayuta-ai
I modified the variable names to prevent conflicts.I consolidated the two separate test functions into a single test function. Please check my code.
In a case like this, should I request a review from Okuda-san?
Please ensure that both Okuda-san and I provide approval.
Unless I explicitly request changes, you don't need to ask my approval.
@nayuta-ai I modified a variable name to camel case and added a test for ListLogs failure.
@nayuta-ai I have some misunderstandings about mock testing. I think I may have modified the code incorrectly. Could you please check my code?
@Rwatana Why has the test coverage decreased?
@nayuta-ai I understand that for this mock, I want to create a struct that can’t be encoded, or create a situation where an error occurs during the encoding process to test for failure cases. However, I am unsure how to achieve this.
I tried making the mock return a new struct that cannot be encoded or replacing part of the struct with non-encodable elements, but it didn’t work by the error. Could you advise on how to proceed in such a case? I apologize for the last-minute request.
I understand the necessity of the following code:
type errorWriterResponse struct {
statusCode int
body string
}
How about reverting to the previous commit?
@nayuta-ai I reverted to the previous version. Please check my code.
@nayuta-ai I think I was able to format it correctly by using the Go formatter. Please check my code.
Issue Number
33
Implementation Summary
This pull request implements the
HandleLogList
method in the presentation layer, enabling the retrieval and display of log records through an HTTP endpoint. The following modifications were made:HandleLogList
method in theMYSQLLogHandler
struct, allowing it to interact with the usecase layer to fetch log data.Scope of Impact
Particular Points to Check
HandleLogList
method correctly handles both successful log retrieval and error conditionsTest
Schedule
10/27