Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Advanced search

Stubbing Different Library Functions on Test Case by Test Case Basis

Last updated: 2019-12-04
Is it possible to have different library functions stubbed out/not stubbed on a test case by test case basis without rebuilding the environment?

The library stubs feature is for _all_ the library functions that you might want "stubbed" in test cases in your environment. If the library functions are reference in your unit under test, then by default it will be stubbed in all test cases for functions in that unit.

If you would like a library function to be stubbed on a test case by test case basis, what you can do is use User Globals user code to create a global variable for each stub to control whether the real function is called or whether the stub code is used.  

Here is an example of the User Global variables that you can create:


Then, in configure stubs user code (Environment | Configure Stubs)

for each stubbed library (beginning of stub), you would enter something like the following:

extern prototype for libfunc1(...);

return libfunc1(...);


Article Options
Views: 102