Python: Add more unit test coverage gates (#4104)

* Add more unit test coverage gates

* Fix missing `files` parameter in `print_coverage_table()` docstring (#4106)

* Initial plan

* Update print_coverage_table docstring to document files parameter

Co-authored-by: TaoChenOSU <12570346+TaoChenOSU@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TaoChenOSU <12570346+TaoChenOSU@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TaoChenOSU <12570346+TaoChenOSU@users.noreply.github.com>
This commit is contained in:
Tao Chen
2026-02-19 14:57:21 -08:00
committed by GitHub
Unverified
parent 67ce1baecf
commit 20af5ad945
2 changed files with 147 additions and 46 deletions
@@ -1,15 +1,15 @@
# Copyright (c) Microsoft. All rights reserved.
from collections.abc import Sequence
from .._types import Message
"""Helpers for managing chat conversation history.
These utilities operate on standard `list[Message]` collections and simple
dictionary snapshots so orchestrators can share logic without new mixins.
"""
from collections.abc import Sequence
from .._types import Message
def latest_user_message(conversation: Sequence[Message]) -> Message:
"""Return the most recent user-authored message from `conversation`."""