Skip to content

test: cover charge door unknown decode path - #11

Merged
augard merged 4 commits into
mainfrom
codex/test-gap-charge-door-unknown-20260309
Oct 11, 2026
Merged

augard merged 4 commits into
mainfrom
codex/test-gap-charge-door-unknown-20260309

Conversation

@augard

@augard augard commented Mar 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add regression test for ChargingDoor.State = 0 decoding to ChargeDoorStatus.unknown
  • add Codable round-trip test for .unknown raw value 0
  • scope kept to recent model change in VehicleTypes.swift

Testing

  • xcodebuild test -project KiaMaps.xcodeproj -scheme KiaMaps -only-testing:KiaTests/MockVehicleDataTests
    • note: previous run was blocked in sandbox with CoreSimulator/DerivedData permissions

@augard augard added codex Created by codex automation codex-automation Created by codex automation labels Mar 9, 2026
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI PR review. Please check the action logs for details.

@augard

augard commented Oct 11, 2026

Copy link
Copy Markdown
Owner Author

@codex please review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T14:43:35.960775Z d6f0597 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@augard
augard marked this pull request as ready for review October 11, 2026 09:04

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2795e42c4a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread KiaTests/MockVehicleDataTests.swift Outdated
Comment on lines +225 to +226
of: "\"ChargingDoor\": {\n \"State\": 2,",
with: "\"ChargingDoor\": {\n \"State\": 0,"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Match the generated JSON indentation before asserting unknown

The multiline string in createVehicleStateJSON strips the closing delimiter's 8-space indentation, so the generated "State" line has 12 leading spaces, while this search expects 20. Consequently, replacingOccurrences makes no change, the value remains 2 (.closed), and this newly added test always fails at the .unknown assertion. Mutate the parsed JSON or match the actual generated whitespace and assert that the replacement occurred.

Useful? React with 👍 / 👎.

augard and others added 2 commits October 11, 2026 11:27
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@augard

augard commented Oct 11, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 480a602f24

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…-door-unknown-20260309

# Conflicts:
#	KiaTests/UIComponentMockDataTests.swift
@augard
augard merged commit 4e54562 into main Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex Created by codex automation codex-automation Created by codex automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant