search for: min_

Displaying 3 results from an estimated 3 matches for "min_".

Did you mean: min
2010 Dec 14
0
[PATCH] BTRFS_IOC_TREE_SEARCH: store and use the last key found
Hi all, following the thread about the BTRFS_IOC_TREE_SEARCH ioctl [1], I made a patch which try to address the problem of restarting the ioctl. In the current solution is the application during the restart of the search to fill the min_* fields in the "struct btrfs_ioctl_search_key". In general the values set are the last one returned "+1". But doing so we reduce the "acceptance criteria window". I propose to add three more fields in the struct btrfs_ioctl_search_key: + /* starting search ke...
2005 Dec 19
2
Advanced search/filter use cases
...asy to implement... but still... it would be so easy to add the magic) My current plan of attack is to add a few helper methods and extend ActiveRecord and Pagination to support these search features in a more elegant way. For example, imagine you could do something like: @bobs = Person.search(:min_birth_date => ''2002-05-01'', :max_birth_date => ''2003-05-01'', :first_name_like => ''obert'', :last_name_starts_with => ''Mac'', :...
2007 Apr 19
5
Best practice thoughts: Model helpers, mocks
...testing, and have only been using RSpec for a few weeks. I found that for my controller specs, my setup methods were getting very long building mocks/stubs for all the model objects I needed to work with. I''ve started creating helpers like the following for each of my models. The "min_" methods are short for "minimum", and are there to give me the minimum set of data that will pass validation for that model. The "obj.send" code is to reduce the length of the data output when RSpec compares expectations to results... A lot of my mocks were several screenf...