Coverage report: 93%

Files Functions Classes

coverage.py v7.13.4, created at 2026-03-12 16:19 +0000

File function   statements missing excluded   coverage
chatgpt_proxy / __init__.py _load_version   4 0 0   100%
chatgpt_proxy / __init__.py (no function)   4 0 0   100%
chatgpt_proxy / _version.py (no function)   1 0 0   100%
chatgpt_proxy / app.py db_maintenance_process   4 4 0   0%
chatgpt_proxy / app.py refresh_steam_web_api_cache_process   1 1 0   0%
chatgpt_proxy / app.py make_api_v1_app   19 0 0   100%
chatgpt_proxy / app.py make_api_v1_app.main_process_ready   2 2 0   0%
chatgpt_proxy / app.py make_api_v1_app.main_process_start   2 2 0   0%
chatgpt_proxy / app.py make_api_v1_app.main_process_stop   1 1 0   0%
chatgpt_proxy / app.py make_api_v1_app.before_server_start   10 0 0   100%
chatgpt_proxy / app.py make_api_v1_app.before_server_stop   14 0 0   100%
chatgpt_proxy / app.py _suppress   4 2 0   50%
chatgpt_proxy / app.py format_base_prompt_initial   1 0 0   100%
chatgpt_proxy / app.py format_base_prompt_consecutive   1 0 0   100%
chatgpt_proxy / app.py get_scoreboard_markdown_table   7 2 0   71%
chatgpt_proxy / app.py get_kills_markdown_table   7 0 0   100%
chatgpt_proxy / app.py get_chat_messages_markdown_table   7 0 0   100%
chatgpt_proxy / app.py sanitize_level_name   3 3 0   0%
chatgpt_proxy / app.py get_game   13 3 0   77%
chatgpt_proxy / app.py post_game   29 1 0   97%
chatgpt_proxy / app.py put_game   11 0 0   100%
chatgpt_proxy / app.py post_game_message   31 0 0   100%
chatgpt_proxy / app.py post_game_kill   18 0 0   100%
chatgpt_proxy / app.py put_game_player   14 0 0   100%
chatgpt_proxy / app.py delete_game_player   6 0 0   100%
chatgpt_proxy / app.py post_game_chat_message   14 0 0   100%
chatgpt_proxy / app.py put_game_objective_state   17 0 0   100%
chatgpt_proxy / app.py db_maintenance   17 4 0   76%
chatgpt_proxy / app.py refresh_steam_web_api_cache   14 9 0   36%
chatgpt_proxy / app.py api_v1_on_request   4 0 0   100%
chatgpt_proxy / app.py (no function)   95 3 0   97%
chatgpt_proxy / auth / __init__.py (no function)   7 0 0   100%
chatgpt_proxy / auth / auth.py load_config   1 0 0   100%
chatgpt_proxy / auth / auth.py is_real_game_server_key_builder   4 0 0   100%
chatgpt_proxy / auth / auth.py is_real_game_server   12 0 0   100%
chatgpt_proxy / auth / auth.py validate_db_token_key_builder   3 3 0   0%
chatgpt_proxy / auth / auth.py validate_db_token   11 0 0   100%
chatgpt_proxy / auth / auth.py check_token   30 0 0   100%
chatgpt_proxy / auth / auth.py check_and_inject_game   3 0 0   100%
chatgpt_proxy / auth / auth.py check_and_inject_game.decorator   2 0 0   100%
chatgpt_proxy / auth / auth.py check_and_inject_game.decorator.game_owner_checked_handler   18 4 1   78%
chatgpt_proxy / auth / auth.py (no function)   32 0 0   100%
chatgpt_proxy / cache / __init__.py (no function)   4 0 0   100%
chatgpt_proxy / cache / cache.py setup_memory_cache   1 0 0   100%
chatgpt_proxy / cache / cache.py setup_redis_cache   3 3 0   0%
chatgpt_proxy / cache / cache.py setup_cache   13 8 0   38%
chatgpt_proxy / cache / cache.py (no function)   19 0 0   100%
chatgpt_proxy / db / __init__.py (no function)   5 0 0   100%
chatgpt_proxy / db / db.py pool_acquire   3 0 0   100%
chatgpt_proxy / db / db.py pool_acquire_many   11 2 0   82%
chatgpt_proxy / db / db.py (no function)   11 0 0   100%
chatgpt_proxy / db / models.py GamePlayer.as_markdown_dict   1 1 0   0%
chatgpt_proxy / db / models.py GamePlayer.wire_format   1 0 0   100%
chatgpt_proxy / db / models.py GameChatMessage.as_markdown_dict   1 0 0   100%
chatgpt_proxy / db / models.py GameChatMessage.wire_format   1 0 0   100%
chatgpt_proxy / db / models.py GameObjective.wire_format   1 0 0   100%
chatgpt_proxy / db / models.py GameObjectiveState.wire_format   1 0 0   100%
chatgpt_proxy / db / models.py GameObjectiveState.from_wire_format   15 0 0   100%
chatgpt_proxy / db / models.py GameKill.as_markdown_dict   2 0 0   100%
chatgpt_proxy / db / models.py (no function)   75 0 0   100%
chatgpt_proxy / db / queries.py insert_game   1 0 0   100%
chatgpt_proxy / db / queries.py build_update_game_query   8 1 0   88%
chatgpt_proxy / db / queries.py update_game   2 0 0   100%
chatgpt_proxy / db / queries.py select_game   4 0 0   100%
chatgpt_proxy / db / queries.py select_games   2 0 0   100%
chatgpt_proxy / db / queries.py upsert_game_objective_state   3 0 0   100%
chatgpt_proxy / db / queries.py delete_completed_games   1 0 0   100%
chatgpt_proxy / db / queries.py select_game_server_api_key   1 0 0   100%
chatgpt_proxy / db / queries.py select_game_server_api_keys   1 0 0   100%
chatgpt_proxy / db / queries.py insert_game_server_api_key   1 0 0   100%
chatgpt_proxy / db / queries.py game_exists   1 1 0   0%
chatgpt_proxy / db / queries.py delete_old_api_keys   1 0 0   100%
chatgpt_proxy / db / queries.py select_openai_query   4 0 0   100%
chatgpt_proxy / db / queries.py insert_openai_query   1 0 0   100%
chatgpt_proxy / db / queries.py insert_game_chat_message   3 0 0   100%
chatgpt_proxy / db / queries.py insert_game_kill   3 0 0   100%
chatgpt_proxy / db / queries.py delete_game_player   1 0 0   100%
chatgpt_proxy / db / queries.py upsert_game_player   2 0 0   100%
chatgpt_proxy / db / queries.py select_game_players   2 0 0   100%
chatgpt_proxy / db / queries.py select_game_player   4 0 0   100%
chatgpt_proxy / db / queries.py game_player_exists   1 0 0   100%
chatgpt_proxy / db / queries.py select_game_kills   11 0 0   100%
chatgpt_proxy / db / queries.py select_game_chat_messages   11 0 0   100%
chatgpt_proxy / db / queries.py increment_steam_web_api_queries   2 0 0   100%
chatgpt_proxy / db / queries.py select_steam_web_api_queries   4 1 0   75%
chatgpt_proxy / db / queries.py (no function)   37 0 0   100%
chatgpt_proxy / gen_api_key.py async_main   11 0 0   100%
chatgpt_proxy / gen_api_key.py main   3 3 0   0%
chatgpt_proxy / gen_api_key.py (no function)   22 1 0   95%
chatgpt_proxy / log / __init__.py (no function)   2 0 0   100%
chatgpt_proxy / log / log.py InterceptHandler.emit   9 9 0   0%
chatgpt_proxy / log / log.py (no function)   9 0 0   100%
chatgpt_proxy / steam / __init__.py (no function)   2 0 0   100%
chatgpt_proxy / steam / steam.py _update_steam_web_api_queries_counter   2 0 0   100%
chatgpt_proxy / steam / steam.py web_api_request   5 0 0   100%
chatgpt_proxy / steam / steam.py (no function)   10 0 0   100%
chatgpt_proxy / tests / __init__.py (no function)   0 0 0   100%
chatgpt_proxy / tests / client.py SpoofedSanicASGITestClient.__init__   10 1 0   90%
chatgpt_proxy / tests / client.py (no function)   9 0 0   100%
chatgpt_proxy / tests / monkey_patch.py monkey_patch_sanic_testing   2 0 0   100%
chatgpt_proxy / tests / monkey_patch.py (no function)   1 0 0   100%
chatgpt_proxy / tests / setup.py initialize_test_db   2 0 0   100%
chatgpt_proxy / tests / setup.py seed_test_db   2 0 0   100%
chatgpt_proxy / tests / setup.py drop_test_db   1 0 0   100%
chatgpt_proxy / tests / setup.py create_test_db   1 0 0   100%
chatgpt_proxy / tests / setup.py common_test_setup   19 5 0   74%
chatgpt_proxy / tests / setup.py retry_context   17 8 0   53%
chatgpt_proxy / tests / setup.py (no function)   34 0 0   100%
chatgpt_proxy / tests / test_api.py patch_openai_response_output_text   3 0 0   100%
chatgpt_proxy / tests / test_api.py api_fixture   29 0 0   100%
chatgpt_proxy / tests / test_api.py api_fixture.retry_cb   2 2 0   0%
chatgpt_proxy / tests / test_api.py api_fixture.client_builder   1 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_post_game   17 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_put_game   13 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_post_game_invalid_token   37 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_post_game_chat_message   37 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_put_delete_game_player   33 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_put_game_objective_state   60 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_post_game_kill   22 0 0   100%
chatgpt_proxy / tests / test_api.py test_api_v1_game_message   37 0 0   100%
chatgpt_proxy / tests / test_api.py (no function)   83 0 0   100%
chatgpt_proxy / tests / test_gen_api_key.py gen_api_key_fixture   13 0 0   100%
chatgpt_proxy / tests / test_gen_api_key.py test_gen_api_key_async_main   6 0 0   100%
chatgpt_proxy / tests / test_gen_api_key.py (no function)   18 0 0   100%
chatgpt_proxy / tests / test_general.py test_version   4 1 0   75%
chatgpt_proxy / tests / test_general.py test_version_unknown   11 2 0   82%
chatgpt_proxy / tests / test_general.py (no function)   6 0 0   100%
chatgpt_proxy / tests / test_maintenance.py maintenance_fixture   17 0 0   100%
chatgpt_proxy / tests / test_maintenance.py delayed_check_task   9 1 0   89%
chatgpt_proxy / tests / test_maintenance.py schedule_delayed_check   5 0 0   100%
chatgpt_proxy / tests / test_maintenance.py schedule_delayed_check.check_task   4 2 0   50%
chatgpt_proxy / tests / test_maintenance.py test_db_maintenance   19 1 0   95%
chatgpt_proxy / tests / test_maintenance.py test_db_maintenance.check_result   5 0 0   100%
chatgpt_proxy / tests / test_maintenance.py test_refresh_steam_web_api_cache   9 1 0   89%
chatgpt_proxy / tests / test_maintenance.py test_refresh_steam_web_api_cache.check_result   3 0 0   100%
chatgpt_proxy / tests / test_maintenance.py (no function)   40 0 0   100%
chatgpt_proxy / tests / test_markdown_gen.py markdown_gen_fixture   1 1 0   0%
chatgpt_proxy / tests / test_markdown_gen.py maintenance_fixture   14 0 0   100%
chatgpt_proxy / tests / test_markdown_gen.py test_markdown_gen   5 0 0   100%
chatgpt_proxy / tests / test_markdown_gen.py (no function)   20 0 0   100%
chatgpt_proxy / tests / test_models.py test_game_objective_state   5 0 0   100%
chatgpt_proxy / tests / test_models.py (no function)   4 0 0   100%
chatgpt_proxy / types / __init__.py (no function)   5 0 0   100%
chatgpt_proxy / types / types.py Context.client   3 3 0   0%
chatgpt_proxy / types / types.py Context.client   1 0 0   100%
chatgpt_proxy / types / types.py Context.pg_pool   3 1 0   67%
chatgpt_proxy / types / types.py Context.pg_pool   1 0 0   100%
chatgpt_proxy / types / types.py Context.http_client   3 1 0   67%
chatgpt_proxy / types / types.py Context.http_client   1 0 0   100%
chatgpt_proxy / types / types.py RequestContext.game   3 1 0   67%
chatgpt_proxy / types / types.py RequestContext.game   1 0 0   100%
chatgpt_proxy / types / types.py Request.make_context   1 0 0   100%
chatgpt_proxy / types / types.py (no function)   37 0 0   100%
chatgpt_proxy / utils / __init__.py (no function)   4 0 0   100%
chatgpt_proxy / utils / utils.py get_remote_addr   3 1 0   67%
chatgpt_proxy / utils / utils.py utcnow   1 0 0   100%
chatgpt_proxy / utils / utils.py (no function)   7 0 0   100%
Total     1617 106 1   93%

No items found using the specified filter.