piotr

About

Username
piotr
Joined
Visits
39
Last Active
Roles
Members, Staff
Points
6
Posts
8
Badges
1

Comments

  • Hello, Assuming: void Func4(int * bptr); void Func5(int b); You could do it like this: CPPTEST_ON_CALL("Func4")->Arg("bptr")->At()->Int(0)->Assign()->Int(5); CPPTEST_ON_CALL("Func5")->If()->Arg("b")->NotEqual()-&…
  • Default stub for Line moveLine(Line line, int xoff, int yoff) will look similar to this: ::Line CppTest_Auto_Stub_moveLine (::Line line, int xoff, int yoff) { ::Line __return = ::Line(); int __callOrig = 0; CPPTEST_ACTUAL_CALL("move…
  • Yes, C++test can create stubs for functions from the same file / class. In general, stub can be created if the function is used / called somewhere in the tested code (with some exceptions). C: void zoo(); // can be stubbed - used in goo() vo…
  • Hello, C++test will automatically generate Dynamic Stubbing code inside the stub function - allowing simple type parameters / return value to be controlled from test case(s). That code can be further modified be the user, e.g. to allow modifyi…
  • Hello, Please check the following: * RuleWizard documentation: * Tutorial: RuleWizard for C++test> Lesson 14: Using a Python Method to Enforce a File Naming Rule * Creating Custom Rules> Tips for Using Scripting with C++test’s R…
  • Hello, 1. Setting environment variables You should set-up all required environment variables before launching C++test/Eclipse IDE (in the console shell etc.) In addition, if your project is of "CDT Managed C/C++ Project" type*, then you can…