Permalink
Switch branches/tags
Nothing to show
Commits on Dec 26, 2012
  1. Update notes

    Mike McClurg committed Dec 26, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  2. Mock_filter now records invocation order and count

    Mike McClurg committed Dec 26, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  3. Fix Makefile for test_mockfoo

    Mike McClurg committed Dec 26, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  4. Comment out Foo.fun_poly

    Mike McClurg committed Dec 26, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 23, 2012
  1. Add an example of manually mocking (really, stubbing) a module

    Mike McClurg committed Oct 23, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 21, 2012
  1. Update notes.org

    Mike McClurg committed Oct 21, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  2. Add TODO comment: be more proactive in signature filtering

    Mike McClurg committed Oct 21, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  3. Lookup hashtable name instead of hard coding it

    Mike McClurg committed Oct 21, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  4. Make module type name like FOO_SIG

    Mike McClurg committed Oct 21, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  5. Remove uncessary todo comment

    Mike McClurg committed Oct 21, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 19, 2012
  1. mock_filter now gets interface name from _loc

    Mike McClurg committed Oct 19, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 18, 2012
  1. Update .gitignore

    Mike McClurg committed Oct 18, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  2. Updated notes

    Mike McClurg committed Oct 18, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  3. mock_filter.ml now creates a working mock module

    Mike McClurg committed Oct 18, 2012
    We generate a working mock module from an interface file. The Makefile is
    updated, and a very simple test is included. I now need to write a syntax
    extention to easily create a mock module from within a test.
    
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 16, 2012
  1. Clean up filter code, put expect funs in correct module

    Mike McClurg committed Oct 16, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  2. Basic functionality is implemented

    Mike McClurg committed Oct 16, 2012
    Wow, looks like we might be close to something useful. This generates a
    valid-looking module from an interface. I'll have to check that it compiles,
    and then test out how useful the mock module is.
    
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  3. Add object to mock_filter.ml which builds up mock module state for pr…

    Mike McClurg committed Oct 16, 2012
    …inting
    
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  4. Add default target to Makefile

    Mike McClurg committed Oct 16, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 12, 2012
  1. Update notes.org

    Mike McClurg committed Oct 12, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  2. Clean up mock_foo.ml, try some new mocking patterns

    Mike McClurg committed Oct 12, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  3. Really flesh out the skeleton of the sig filter

    Mike McClurg committed Oct 12, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  4. Update Makefile

    Mike McClurg committed Oct 12, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 11, 2012
  1. Add initial mock_filter and example foo.mli

    Mike McClurg committed Oct 11, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Oct 6, 2012
  1. Add gitignore and typerex files

    Mike McClurg committed Oct 6, 2012
Commits on Oct 5, 2012
  1. Add mock-foo.ml as example of mock module pattern

    Mike McClurg committed Oct 5, 2012
    I'm still working out the pattern that we want to follow with our mock modules.
    This example shows the use of polymorphic variants to tag functions, which
    we'll store in a hash table. We use polymorphic variants instead of proper sum
    types because we won't necessarily know the types of the functions of the
    module we're mocking when we're filtering with camlp4. This problem could be
    avoided by requiring a module signature in order for a module to be mocked, so
    that we can iterate over the function signatures to extract types. I'm not sure
    which approach is better.
    
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Sep 27, 2012
  1. Update README instructions

    Mike McClurg committed Sep 27, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  2. Fix build instructions, and a typo

    Mike McClurg committed Sep 27, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  3. Fix script in README

    Mike McClurg committed Sep 27, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  4. Add README section on opam and ocp-build

    Mike McClurg committed Sep 27, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  5. Added README.md

    Mike McClurg committed Sep 27, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Commits on Sep 26, 2012
  1. Initial commit of some test code

    Mike McClurg committed Sep 26, 2012
    Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>