search for: matchers

Displaying 20 results from an estimated 600 matches for "matchers".

Did you mean: matcher
2010 Sep 08
4
Re-using Rspec Matchers
Hey Everyone, Is it good practice to call matchers from within matchers? Kinda like this pattern: See: http://gist.github.com/570467 -- Brian
2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...amp;curDevice, regex_matcher, MODE_OPEN); } if (hd == NULL) { return 0; } Note "regex_matcher", not "reopen_matcher", in the second call, and also the changed MODE flag. Then all the complicated stuff could be removed from libhid/libusb (different non-zero return codes for matchers etc). I am not sure the code in libusb_open() is correct anyway, as matching a chain of matchers should mean matching *all* the matchers contained therein, not just the first possible one. For example, after a positive reopen_match, one should still check regex_match also. In other words, we are...
2016 Nov 28
2
Looking for help with an ast matcher
...ompare(str2)) { std::cout << "Strings not equal" << std::endl; } return 0; } On Sun, Nov 27, 2016 at 10:39 PM Piotr Padlewski <piotr.padlewski at gmail.com> wrote: > Sorry for writing 3 emails, > I looked into http://clang.llvm.org/docs/LibASTMatchersReference.html? > and it seems that matcher > on : > Matcher<CXXMemberCallExpr > <http://clang.llvm.org/doxygen/classclang_1_1CXXMemberCallExpr.html>> -> > Matcher<Expr <http://clang.llvm.org/doxygen/classclang_1_1Expr.html>> > InnerMatcher > would be...
2009 Dec 07
2
xapain install
Hi, I am trying to isntall Xapain. I run $./cofigure optionand then I rune make, but it echos following message in infinite loop. Is there anything wrong? How to correct? --------------------------------- /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I./common -I./include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
Even if it still did add overhead, it seems perfectly reasonable, from a user's perspective (namely mine), that if I introduce unnecessary narrowing matchers to my chain that there may be a performance penalty. The ability to do the following easily outweighs any performance issues for me: anyOf ( /* hasName("..."), */ hasName("...") ) though C++ not allowing trailing commas makes this not quite as great. *However, with...
2016 Nov 28
2
Looking for help with an ast matcher
...gs not equal" << std::endl; > } > > return 0; > > } > > > > > On Sun, Nov 27, 2016 at 10:39 PM Piotr Padlewski < > piotr.padlewski at gmail.com> wrote: > > Sorry for writing 3 emails, > I looked into http://clang.llvm.org/docs/LibASTMatchersReference.html? > and it seems that matcher > on : > Matcher<CXXMemberCallExpr > <http://clang.llvm.org/doxygen/classclang_1_1CXXMemberCallExpr.html>> -> > Matcher<Expr <http://clang.llvm.org/doxygen/classclang_1_1Expr.html>> > InnerMatcher > would be...
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
I was wondering if there is any objection to removing the 2-element minimum on the eachOf, anyOf and allOf matchers. It is frustrating when playing with matchers to have to edit significant amounts of code to be able to temporarily go from 2 to 1 matcher inside an any- or allOf matcher. And overall it feels very "un-set-theory"-like. The change was made here: https://github.com/llvm-mirror/clang/com...
2007 Oct 19
11
Patch idea for rspec_on_rails
...ing it, I just wanted to make sure this was something the community would like. Instead of pasting in the code into the email, I thought I''d just make a pastie and let those interested read it there: http://pastie.caboo.se/108922 I think it would make a nice addition to the current Rails matchers. Here''s hoping you do too. RSL
2011 Apr 16
11
added new cool matcher into my framework WatirSplash - #in
...ax-heavy application before: browser.link(:id => "someid").click # let''s wait up to 5 seconds for div to become visible browser.wait_until(5) {browser.div(:id => "otherid").visible?} It was quite cumbersome and i thought about adding and #in matcher to all matchers so i can do something like this instead: # clicking the link changed div''s text from "before" to "after" in a maximum of 2 seconds expect { link.click }.to change {div.text}.from("before").to("after").in(2) # clicking link makes div as...
2016 Nov 27
2
Looking for help with an ast matcher
Adding cfe-dev, because it is related to clang, not LLVM. 2016-11-27 22:34 GMT+01:00 Piotr Padlewski <piotr.padlewski at gmail.com>: > Hi Mads, > Can you provide the code that you run clang-query on, or at least AST for > the fragment you want to match? > > Piotr > > 2016-11-26 22:27 GMT+01:00 Mads Ravn via llvm-dev <llvm-dev at lists.llvm.org > >: >
2007 Oct 25
0
Fwd: [ mocha-Feature Requests-15021 ] without or not params matcher
...hile ago, but ran into the keyword issue. I''ve just committed revision 191 with Not() instead. It isn''t great, but it''s the best I can think of at the moment. What do you think? I don''t think the without() works because you may want to negate only some of your matchers. Cheers, James. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7480&aid=15021&group_id=1917 -- James. http://blog.floehopper.org http://tumble.floehopper.org
2020 Nov 12
2
Musings on the TableGen -emit-dag-isel backend
...seconds (733.8740 wall clock) ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 645.0017 ( 87.9%) 0.2340 (100.0%) 645.2357 ( 88.0%) 645.2709 ( 87.9%) Emit matcher table 70.4501 ( 9.6%) 0.0000 ( 0.0%) 70.4501 ( 9.6%) 70.5510 ( 9.6%) Convert to matchers 14.6329 ( 2.0%) 0.0000 ( 0.0%) 14.6329 ( 2.0%) 14.7638 ( 2.0%) Parse, build records 2.1996 ( 0.3%) 0.0000 ( 0.0%) 2.1996 ( 0.3%) 2.1871 ( 0.3%) Sort patterns 1.0920 ( 0.1%) 0.0000 ( 0.0%) 1.0920 ( 0.1%) 1.0961 ( 0.1%) Optimize matchers 0.0000 ( 0.0%) 0.0...
2019 Apr 09
2
Help Regarding, Improve Estimated total number of results
The GSoC guide section recommends reading of the hacking. But there are many files in the resources link given for the project. Should I start from the matcher files (matcher.cc and matcher.h) or is there something else I should do? Please help. Thanks & Regards, Hemant Kumar Singh -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 May 19
2
have_text matcher does not support should_not.
...oin This Group button on profile page as member" do get "show", :id => @group.id response.should be_success response.should_not have_text(/Join This Group/) end But running with spec (0.9.4), drop me the folling error: Matcher does not support should_not. See Spec::Matchers for more information about matchers. Which is contradictory, since RDoc state otherwise: http://rspec.rubyforge.org/rdoc-rails/classes/Spec/Rails/Matchers.html#M000014 response.should have_text(expected) response.should_not have_text(expected) Just a bug? If so, I''m filling a a report...
2007 May 04
2
Custom Matcher and NAME NOT GENERATED annoyance
Hello RSpec users, Have been using RSpec since 0.8.2 (not too long ago, I must say). and been creating my custom matchers since was defined as "good practice". Also, auto-generated names for the examples is very helpful, I''m trying to take advantage of it. Since I often prior code/define all the "examples", I have created a few matchers to fulfill associations and validations of attribut...
2011 Jul 28
2
RSpec, shoulda-matchers and Rails model attributes validations
...pped doing the unit test of a model. In particular, doing the test for the associations and the ActiveRecord validations. I started writing the validations but my tests didn''t look DRY at all. Before refactoring the tests checked out and look for other people solutions. I found out shoulda-matchers and Shoulda (which if I didn''t get it wrong is another testing framework). Actually I found another one, remarkable, but it look it doesn''t work with Rails 3. Does anyone have any advice, comments, suggestion on this matter? Right now I continue on using RSpec and shoulda-matche...
2007 Jul 26
6
response.should_not redirect_to
...is just too deep night over here and I''m missing something though I got this failure on {{{response.should_not redirect_to}}}: ''QueuesController should allow authenticated user to access ''show'''' FAILED Matcher does not support should_not. See Spec::Matchers for more information about matchers. Also I''ve found this in rspec_on_rails sources: # response.should_not redirect_to(url) # response.should_not redirect_to(:action => action_name) # response.should_not redirect_to(:controller => controller_name, :acti...
2017 Mar 15
2
xapian core missing link to math on MSYS2
Dear All, I've tried to build xapian-core 1.4.3 on MSYS2. It fails with attached error (undefined reference to `exp10'). I think it might be missing an explicit link to 'm'. I'm not able to fix this myself as I do not know autotools sufficiently well, but I hope you might be able to help. Cheers, Mario Emmenlauer -- BioDataAnalysis GmbH, Mario Emmenlauer Tel.
2020 Nov 13
4
Musings on the TableGen -emit-dag-isel backend
...gt; > ---User Time--- --System Time-- --User+System-- ---Wall Time--- > --- Name --- > 645.0017 ( 87.9%) 0.2340 (100.0%) 645.2357 ( 88.0%) 645.2709 ( > 87.9%) Emit matcher table > 70.4501 ( 9.6%) 0.0000 ( 0.0%) 70.4501 ( 9.6%) 70.5510 ( 9.6%) > Convert to matchers > 14.6329 ( 2.0%) 0.0000 ( 0.0%) 14.6329 ( 2.0%) 14.7638 ( 2.0%) > Parse, build records > 2.1996 ( 0.3%) 0.0000 ( 0.0%) 2.1996 ( 0.3%) 2.1871 ( 0.3%) > Sort patterns > 1.0920 ( 0.1%) 0.0000 ( 0.0%) 1.0920 ( 0.1%) 1.0961 ( 0.1%) > Optimize matche...
2012 Jan 26
2
[LLVMdev] HELP - tblgen -gen-asm-matcher restrictions on .td content
I'm trying to generate MipsGenAsmMatcher.inc for MipsAsmParser.cpp. What added restrictions for the .td file contents are there for tblgen -gen-asm-matcher? For the Mips platform we create the following .inc files through tblgen. tablegen(LLVM MipsGenRegisterInfo.inc -gen-register-info) tablegen(LLVM MipsGenInstrInfo.inc -gen-instr-info) tablegen(LLVM MipsGenCodeEmitter.inc -gen-emitter)