File Coverage

t/cookbook/recipe03.xsi
Criterion Covered Total %
statement 0 3 0.0
branch 0 2 0.0
condition n/a
subroutine n/a
pod n/a
total 0 5 0.0


line stmt bran cond sub pod time code
1             MODE: INLINE
2              
3             struct TimezoneRecipe03 {
4             const char* get_name() const { return name; }
5             static const TimezoneRecipe03& get_instance() {
6             static TimezoneRecipe03* instance = new TimezoneRecipe03();
7             return *instance;
8             }
9             private:
10             TimezoneRecipe03() { name = "Europe/Minsk"; }
11             const char* name;
12             };
13              
14             namespace xs {
15             template <>
16             struct Typemap : TypemapObject {
17             static std::string package () { return "MyTest::Cookbook::TimezoneRecipe03"; }
18             };
19             }
20              
21             MODULE = MyTest::Cookbook PACKAGE = MyTest::Cookbook::TimezoneRecipe03
22             PROTOTYPES: DISABLE
23              
24 0           const char* TimezoneRecipe03::get_name() : const;
25              
26 0           const TimezoneRecipe03* get_instance() { RETVAL = &TimezoneRecipe03::get_instance(); }