Skip to content

完成01-basic作业 - #125

Open
gbx-cyber2 wants to merge 1 commit into
eesast:homework/01-basicfrom
gbx-cyber2:homework/01-basic
Open

完成01-basic作业#125
gbx-cyber2 wants to merge 1 commit into
eesast:homework/01-basicfrom
gbx-cyber2:homework/01-basic

Conversation

@gbx-cyber2

Copy link
Copy Markdown

暑培:队式作业提交

基本信息

  • 姓名:龚伯熙
  • 班级:笃实56
  • 学号:2025013077

提交说明

Copilot AI lite review requested due to automatic review settings August 28, 2026 08:07
@mergify mergify Bot added the homework Homework PR, will not be merged label Aug 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR completes the missing implementations for the 01-basic homework tasks in the LogParser component, adding support for parsing/dumping request and internal log events and documenting the approach in the homework report.

Changes:

  • Implemented parsing for request and internal events in LineParser (including exception splitting for internal logs).
  • Implemented visitor dumping for RequestLogEntry and InternalLogEntry, and wired up Accept() for these entry types.
  • Added docs/01-basic/report.md describing the solution and reflections.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/LogParser/Visitors/KeyValueVisitor.cs Adds dictionary dump support for RequestLogEntry and InternalLogEntry.
src/LogParser/Parser/LineParser.cs Implements creation/parsing logic for request and internal log messages.
src/LogParser/Models/LogEntries.cs Implements Accept() for RequestLogEntry and InternalLogEntry to enable visitor dispatch.
docs/01-basic/report.md Adds the written report for the 01-basic homework submission.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +71 to +75
var separatorIndex = internalMessage.Exception.IndexOf(": ");
if (separatorIndex < 0)
{
throw new FormatException($"Invalid exception format: {internalMessage.Exception}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

homework Homework PR, will not be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants