PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
test_support.h File Reference

Test support utilities for PACS dependency injection. More...

#include "service_interfaces.h"
#include "service_registration.h"
#include <kcenon/pacs/core/dicom_dataset.h>
#include <kcenon/pacs/core/dicom_tag_constants.h>
#include <kcenon/common/di/service_container.h>
#include <functional>
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <vector>
Include dependency graph for test_support.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::pacs::di::test::MockStorage
 
class  kcenon::pacs::di::test::MockNetwork
 Mock network service for testing. More...
 
class  kcenon::pacs::di::test::TestContainerBuilder
 

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::di
 
namespace  kcenon::pacs::di::test
 

Functions

std::shared_ptr< kcenon::common::di::service_container > kcenon::pacs::di::test::create_test_container ()
 Create a test container with all mock services.
 
void kcenon::pacs::di::test::register_mock_storage (kcenon::common::di::IServiceContainer &container, std::shared_ptr< MockStorage > mock)
 Register mock storage with a container.
 
void kcenon::pacs::di::test::register_mock_network (kcenon::common::di::IServiceContainer &container, std::shared_ptr< MockNetwork > mock)
 Register mock network with a container.
 

Detailed Description

Test support utilities for PACS dependency injection.

This file provides mock implementations and test utilities for unit testing code that depends on PACS services. Use these mocks to isolate code under test from actual storage, network, and codec implementations.

See also
Issue #312 - ServiceContainer based DI Integration
Author
kcenon
Since
1.0.0

Definition in file test_support.h.