Skip to content
Snippets Groups Projects
  1. May 15, 2013
    • Helga Velroyen's avatar
      Instance generators · 13d62481
      Helga Velroyen authored
      
      This patch introduces and enhances generators for
      instances:
      - 'genInstWithNets' is split into the generation of an
        arbitrary instance and enhancing an instance with nets
      - 'genInst' calls 'genInstWithNets' with an empty set
        of initial networks to provide a reasonable default
      - the Arbitrary instance of 'Instance' uses now 'genDisks'
        to create instances with a reasonable set of disks
      
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      13d62481
    • Helga Velroyen's avatar
      Annotate every arbitrary instance field · 6b168d4a
      Helga Velroyen authored
      
      The Arbitrary instance of the 'Instance' object is written
      using the <*> syntax. Since it often uses the 'arbitrary'
      generator for the instance's fields it is hard to figure
      out which 'arbitrary' fills which instance field. This
      patch annotates all fields with their name to make
      maintenance of this code easier.
      
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      6b168d4a
    • Helga Velroyen's avatar
      Generators for disks · d9b681ea
      Helga Velroyen authored
      
      This patch adds generators for Disk instances to the Haskell
      test code. It uses somewhat more reasonable generators to
      fill the fields instead of just arbitrary values.
      'genDiskWithChildren' is a generator that generates a disk
      with a specified number of disk children. To avoid shooting
      ourselves in the foot we do not generate further (grand)
      child disks for the child disks. 'genDisk' calls
      'genDiskWithChildren' by requesting three children as a
      resonable default.
      
      Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      d9b681ea
  2. May 14, 2013
  3. May 13, 2013
  4. May 10, 2013
  5. May 08, 2013
  6. May 07, 2013
  7. May 05, 2013
  8. May 03, 2013
  9. May 02, 2013
  10. May 01, 2013
  11. Apr 30, 2013
Loading