Coverage report: 76%

Files Functions Classes

coverage.py v7.6.8, created at 2024-12-06 09:34 +0800

File function statements missing excluded coverage
src/fastoai/__init__.py lifespan 1 1 0 0%
src/fastoai/__init__.py no_result_found_exception_handler 1 1 0 0%
src/fastoai/__init__.py (no function) 16 2 0 88%
src/fastoai/__main__.py (no function) 2 2 0 0%
src/fastoai/cli.py serve 1 1 0 0%
src/fastoai/cli.py (no function) 11 11 0 0%
src/fastoai/dependencies.py get_session 5 5 0 0%
src/fastoai/dependencies.py get_openai 1 1 0 0%
src/fastoai/dependencies.py get_user 7 6 0 14%
src/fastoai/dependencies.py (no function) 19 0 0 100%
src/fastoai/models/__init__.py (no function) 21 0 0 100%
src/fastoai/models/_codegen.py ruff_check 6 0 0 100%
src/fastoai/models/_codegen.py Annotated 1 0 0 100%
src/fastoai/models/_codegen.py Field 1 0 0 100%
src/fastoai/models/_codegen.py _fix_id 2 0 0 100%
src/fastoai/models/_codegen.py _fix_literal 5 0 0 100%
src/fastoai/models/_codegen.py _get_object_literal 3 0 0 100%
src/fastoai/models/_codegen.py _fix_optional 10 0 0 100%
src/fastoai/models/_codegen.py _fix_list 6 0 0 100%
src/fastoai/models/_codegen.py _fix_name 4 0 0 100%
src/fastoai/models/_codegen.py Optional 1 0 0 100%
src/fastoai/models/_codegen.py _fix_timestamp 14 0 0 100%
src/fastoai/models/_codegen.py _to_openai_model 1 0 0 100%
src/fastoai/models/_codegen.py generate_module 41 1 0 98%
src/fastoai/models/_codegen.py Relationship 1 0 0 100%
src/fastoai/models/_codegen.py _add_foreign_key 14 0 0 100%
src/fastoai/models/_codegen.py _t2c 1 0 0 100%
src/fastoai/models/_codegen.py _c2t 1 0 0 100%
src/fastoai/models/_codegen.py _add_back_populates 4 0 0 100%
src/fastoai/models/_codegen.py generate_modules 12 0 0 100%
src/fastoai/models/_codegen.py (no function) 29 0 0 100%
src/fastoai/models/_metadata.py WithMetadata.__init__ 3 0 0 100%
src/fastoai/models/_metadata.py WithMetadata.model_validate 3 0 0 100%
src/fastoai/models/_metadata.py WithMetadata.model_dump 4 0 0 100%
src/fastoai/models/_metadata.py WithMetadata.model_dump_json 4 4 0 0%
src/fastoai/models/_metadata.py WithMetadata.model_json_schema 4 0 0 100%
src/fastoai/models/_metadata.py (no function) 14 0 0 100%
src/fastoai/models/_types.py BaseModelType.__init__ 2 0 0 100%
src/fastoai/models/_types.py BaseModelType.process_bind_param 9 4 0 56%
src/fastoai/models/_types.py BaseModelType.process_result_value 2 0 0 100%
src/fastoai/models/_types.py UnionModelType.__init__ 2 0 0 100%
src/fastoai/models/_types.py UnionModelType.process_bind_param 9 6 0 33%
src/fastoai/models/_types.py UnionModelType.process_result_value 1 0 0 100%
src/fastoai/models/_types.py MutableBaseModel.__setattr__ 2 2 0 0%
src/fastoai/models/_types.py MutableBaseModel.coerce 7 7 0 0%
src/fastoai/models/_types.py _is_subclass_of_base_model 4 0 0 100%
src/fastoai/models/_types.py _is_base_model 2 0 0 100%
src/fastoai/models/_types.py _is_base_model._is_union_of_base_models 1 0 0 100%
src/fastoai/models/_types.py as_sa_type 18 1 0 94%
src/fastoai/models/_types.py (no function) 22 0 0 100%
src/fastoai/models/_utils.py get_random_string 1 0 0 100%
src/fastoai/models/_utils.py random_id_with_prefix 2 0 0 100%
src/fastoai/models/_utils.py random_id_with_prefix._inner 1 0 0 100%
src/fastoai/models/_utils.py now 1 0 0 100%
src/fastoai/models/_utils.py (no function) 6 0 0 100%
src/fastoai/models/generated/assistant.py Assistant.to_openai_model 3 0 0 100%
src/fastoai/models/generated/assistant.py Assistant.serialize_datetime 1 0 0 100%
src/fastoai/models/generated/assistant.py (no function) 34 3 0 91%
src/fastoai/models/generated/file_object.py FileObject.to_openai_model 3 3 0 0%
src/fastoai/models/generated/file_object.py FileObject.serialize_datetime 1 1 0 0%
src/fastoai/models/generated/file_object.py (no function) 19 0 0 100%
src/fastoai/models/generated/message.py Message.to_openai_model 3 3 0 0%
src/fastoai/models/generated/message.py Message.serialize_datetime 3 3 0 0%
src/fastoai/models/generated/message.py (no function) 33 0 0 100%
src/fastoai/models/generated/run.py Run.to_openai_model 3 3 0 0%
src/fastoai/models/generated/run.py Run.serialize_datetime 3 3 0 0%
src/fastoai/models/generated/run.py (no function) 52 2 0 96%
src/fastoai/models/generated/run_step.py RunStep.to_openai_model 3 3 0 0%
src/fastoai/models/generated/run_step.py RunStep.serialize_datetime 3 3 0 0%
src/fastoai/models/generated/run_step.py (no function) 35 0 0 100%
src/fastoai/models/generated/thread.py Thread.to_openai_model 3 3 0 0%
src/fastoai/models/generated/thread.py Thread.serialize_datetime 1 1 0 0%
src/fastoai/models/generated/thread.py (no function) 24 3 0 88%
src/fastoai/models/user.py OrganizationUser.to_openai_model 2 2 0 0%
src/fastoai/models/user.py (no function) 50 0 0 100%
src/fastoai/pagination.py AsyncCursorPage.has_more 1 0 0 100%
src/fastoai/pagination.py AsyncCursorPage.first_id 3 1 0 67%
src/fastoai/pagination.py AsyncCursorPage.last_id 3 1 0 67%
src/fastoai/pagination.py (no function) 12 0 0 100%
src/fastoai/routers/__init__.py create_chat_completions 6 6 0 0%
src/fastoai/routers/__init__.py create_chat_completions._stream 3 3 0 0%
src/fastoai/routers/__init__.py (no function) 17 0 0 100%
src/fastoai/routers/_client.py get_client_class 5 1 0 80%
src/fastoai/routers/_client.py (no function) 6 0 0 100%
src/fastoai/routers/_types.py ToOpenaiModel.to_openai_model 1 0 0 100%
src/fastoai/routers/_types.py (no function) 4 0 0 100%
src/fastoai/routers/_utils.py create_model_from 3 1 0 67%
src/fastoai/routers/_utils.py (no function) 4 0 0 100%
src/fastoai/routers/beta/__init__.py required_beta_header 0 0 0 100%
src/fastoai/routers/beta/__init__.py (no function) 14 0 0 100%
src/fastoai/routers/beta/assistants.py create_assistant 5 2 0 60%
src/fastoai/routers/beta/assistants.py list_assistants 16 12 0 25%
src/fastoai/routers/beta/assistants.py retrieve_assistant 2 2 0 0%
src/fastoai/routers/beta/assistants.py update_assistant 6 6 0 0%
src/fastoai/routers/beta/assistants.py delete_assistant 4 3 0 25%
src/fastoai/routers/beta/assistants.py (no function) 23 0 0 100%
src/fastoai/routers/beta/messages.py create_message 8 8 0 0%
src/fastoai/routers/beta/messages.py list_messages 3 3 0 0%
src/fastoai/routers/beta/messages.py (no function) 13 0 0 100%
src/fastoai/routers/beta/run_steps.py (no function) 2 0 0 100%
src/fastoai/routers/beta/runs.py _ 1 1 0 0%
src/fastoai/routers/beta/runs.py run_decorator 3 3 0 0%
src/fastoai/routers/beta/runs.py run_decorator.event_decorator 2 2 0 0%
src/fastoai/routers/beta/runs.py run_decorator.event_decorator.wrapper 22 22 0 0%
src/fastoai/routers/beta/runs.py create_run 11 11 0 0%
src/fastoai/routers/beta/runs.py create_run.message_creation_step 14 14 0 0%
src/fastoai/routers/beta/runs.py create_run.xrun 7 7 0 0%
src/fastoai/routers/beta/runs.py (no function) 20 0 0 100%
src/fastoai/routers/beta/threads.py create_thread 7 7 0 0%
src/fastoai/routers/beta/threads.py retrieve_thread 2 2 0 0%
src/fastoai/routers/beta/threads.py (no function) 12 0 0 100%
src/fastoai/routers/files.py upload_file 7 7 0 0%
src/fastoai/routers/files.py list_files 15 15 0 0%
src/fastoai/routers/files.py retrieve_file 2 2 0 0%
src/fastoai/routers/files.py retrieve_file_content 2 2 0 0%
src/fastoai/routers/files.py delete_file 4 4 0 0%
src/fastoai/routers/files.py (no function) 23 0 0 100%
src/fastoai/routers/models.py get_models 1 1 0 0%
src/fastoai/routers/models.py retrieve_model 1 1 0 0%
src/fastoai/routers/models.py delete_model 1 1 0 0%
src/fastoai/routers/models.py (no function) 12 0 0 100%
src/fastoai/settings.py Settings.model_post_init 1 0 0 100%
src/fastoai/settings.py get_settings 1 0 0 100%
src/fastoai/settings.py (no function) 17 0 0 100%
Total   997 242 0 76%

No items found using the specified filter.