title: Where expectations are stored in Google Test?
body: <p>I cannot find it neither in the CookBook nor Advanced Part of Google Test Framework Tutorial. I have for example the following function that creates expectations:</p>
  
  <pre><code>void testFunc()
  {
      for (std::size_t i = 0; i &lt; 10; i++)
          EXPECT_CALL(dummyMock, mockFunc).WillOnce(Return(i))    
  }
  </code></pre>
  
  <p>And then I invoke this function in some Test Case</p>
  
  <pre><code>TEST(UnitTestCase, TestSomeMockFunc)
  {
      TestSomeFunction();
      testFunc();
  }
  </code></pre>
  
  <p>The question is how Google Test execute the code from testFunc. Does it make it after TestSomeFunction's execution? Or before it, for example during compilation time? And finally, where each "EXPECT_CALL" statement from testFunc is stored after execution of this function?</p>