Minsky
coverage.h
Go to the documentation of this file.
1 /*
2  Temporarily in Minsky for development purposes, but will be moved to EcoLab
3 */
4 /*
5  Provides support for regression test coverage analysis of TCL code
6 */
7 
8 #include "str.h"
9 #include <cachedDBM.h>
10 namespace minsky
11 {
12  using namespace ecolab;
13  struct Coverage: public cachedDBM<string,unsigned>
14  {
15  // copy operators just provide a default (inactive) db file
16  Coverage& operator=(const Coverage&) {return *this;}
17  Coverage(const Coverage&) {}
18  Coverage() {}
19  static string key(const string& file, int line);
20  // add a code coverage point to the database
21  void add(const string& file, int line);
22  };
23 }
24 
25 #include "coverage.cd"
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky&#39;s state cha...
Definition: constMap.h:22
Coverage(const Coverage &)
Definition: coverage.h:17
Coverage & operator=(const Coverage &)
Definition: coverage.h:16