#117
gdtest_config_combo_b
OK
CONFIG
Config combo: parser=google, dynamic=false, sidebar_filter.enabled=false, dark_mode_toggle=false, source.enabled=false. All opt-out flags.
Combination: parser=google + dynamic=false + sidebar_filter.enabled=false + dark_mode_toggle=false + source.enabled=false. All opt-out flags together.
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
K5 K6 K9 K10 K15
K5source.enabled: falseconfig
K6sidebar_filter.enabled: falseconfig
K9dynamic: falseconfig
K10parser: googleconfig
K15dark_mode_toggle: falseconfig
Source Files
gdtest_config_combo_b/
__init__.py
"""Test package for config combo B."""
core.py
"""Search and ranking functions using Google-style docstrings."""
def search(query: str) -> list:
"""Search for items matching a query string.
Args:
query: The search query string.
Returns:
A list of matching results as dictionaries.
Examples:
>>> search("widgets")
[{'name': 'widget_a', 'score': 0.9}]
"""
return [{"name": "widget_a", "score": 0.9}]
def filter_results(results: list, criteria: str) -> list:
"""Filter a list of results by the given criteria.
Args:
results: The list of result dictionaries to filter.
criteria: A string describing the filter criteria.
Returns:
A filtered list of result dictionaries.
Examples:
>>> filter_results([{"name": "a", "score": 0.9}], "score>0.5")
[{'name': 'a', 'score': 0.9}]
"""
return results
def rank(results: list) -> list:
"""Rank a list of results by score in descending order.
Args:
results: The list of result dictionaries to rank. Each dict
should have a 'score' key.
Returns:
The sorted list of result dictionaries, highest score first.
Examples:
>>> rank([{"score": 0.5}, {"score": 0.9}])
[{'score': 0.9}, {'score': 0.5}]
"""
return sorted(results, key=lambda r: r.get("score", 0), reverse=True)great-docs.yml
parser: google dynamic: false sidebar_filter: enabled: false dark_mode_toggle: false source: enabled: false