← GDG /

#103 gdtest_parser_google

#103 gdtest_parser_google OK CONFIG
Tests parser: google config
Tests parser: 'google' with all-Google docstrings. Five functions with Args/Returns/Raises sections. Parser should correctly handle Google format without falling back to numpy.
View Site → Build Log ๐Ÿงช Test Coverage

Build Mode

● Has great-docs.yml

This package ships a pre-supplied config. The great-docs init step is skipped and great-docs build uses the spec-defined configuration directly. Tests specific config options and their rendered output.

Dimensions

K10
K10parser: googleconfig

Source Files

๐Ÿ“ gdtest_parser_google/
๐Ÿ“„ __init__.py
"""Package testing parser google config."""

__version__ = "0.1.0"
__all__ = ["connect", "disconnect", "send", "receive", "status"]


def connect(host: str, port: int = 8080) -> bool:
    """Connect to a remote host.

    Args:
        host: The hostname or IP address to connect to.
        port: The port number to use. Defaults to 8080.

    Returns:
        True if the connection was successful, False otherwise.
    """
    return True


def disconnect() -> None:
    """Disconnect from the remote host.

    Returns:
        None.
    """
    pass


def send(data: str) -> int:
    """Send data to the remote host.

    Args:
        data: The string data to send.

    Returns:
        The number of bytes sent.

    Raises:
        ConnectionError: If the connection is not established.
    """
    return len(data)


def receive(timeout: float = 5.0) -> str:
    """Receive data from the remote host.

    Args:
        timeout: The maximum time to wait in seconds. Defaults to 5.0.

    Returns:
        The received data as a string.
    """
    return ""


def status() -> dict:
    """Get the current connection status.

    Returns:
        A dictionary with connection status information.
    """
    return {}
๐Ÿ“„ README.md
# gdtest-parser-google

Tests parser: google config.
๐Ÿ“„ great-docs.yml
parser: google