Gluster test: Using TESTS_EXPECTED_IN_LOOP

One frequently asked question on Gluster test framework is how to encapsulate the TEST/EXPECT/EXPECT_WITHIN statements within a function without getting "bad test plan" errors. I wrote a sample test to demonstrate the solution using TESTS_EXPECTED_IN_LOOP . The trick here is to count the number of invocations (n) of the "function" and then set
TESTS_EXPECTED_IN_LOOP=(n-1) * (test statements in function).

Yes, this trick does not work when the number of times a function is called is not deterministic. For such cases, you would have to prefix the function invocation with a test statement and lose the granularity of the tests.


Comments

  1. Take your time, flick through the casinos, and select the one that offers the most effective advantages to its members. If not, establish whether or not you’ve obtained 4 cards to 솔카지노 a royal flush. If sure, hold the 4 cards, and try hitting the royal. If may be} snug playing in} the max number of cash, so be it. Even so, don’t play at a stage that your funds don’t allow you to journey out a streak. In all of the US poker, for instance, find a way to|you possibly can} wager between 1 to five cash.

    ReplyDelete

Post a Comment