search for: matcher

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

Did you mean: watcher
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
...nfine libhid to low-level operations, and leave the decision of trying to reopen vs. retrying to open to the high-level driver, in this case usbhid-ups? I envision that the code in usbhid-ups:reconnect_ups() could be changed to something like: hd = HIDOpenDevice(&udev, &curDevice, reopen_matcher, MODE_REOPEN); if (hd == NULL) { /* reopening failed, try opening new device */ hd = HIDOpenDevice(&udev, &curDevice, regex_matcher, MODE_OPEN); } if (hd == NULL) { return 0; } Note "regex_matcher", not "reopen_matcher", in the second call, and also the changed...
2016 Nov 28
2
Looking for help with an ast matcher
Hi Piotr, I think I found a working matcher: match ifStmt(hasCondition(implicitCastExpr(hasImplicitDestinationType(isInteger()), has(cxxMemberCallExpr(callee(cxxMethodDecl(hasName("compare"))), hasArgument(0, declRefExpr().bind("str2")), callee(memberExpr(has(declRefExpr().bind("str1"))))))))).bind("case1&q...
2009 Dec 07
2
xapain install
...l --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 -Wformat-security -fno-gnu-keywords -Woverloaded-virtual -Wundef -Wshadow -Wstrict-null-sentinel -Wshadow -fvisibility=hidden -g -O2 -MT matcher/branchpostlist.lo -MD -MP -MF $depbase.Tpo -c -o matcher/branchpostlist.lo matcher/branchpostlist.cc &&\ mv -f $depbase.Tpo $depbase.Plo g++ -DHAVE_CONFIG_H -I. -I./common -I./include -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security...
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, wit...
2016 Nov 28
2
Looking for help with an ast matcher
Hi Piotr, Thanks. Yeah, it seemed a little weird, but it was what got me closest. I found out that the matcher I supplied here was working for clang-query 3.8.1. I'm working on a clang-tidy module for 4.0.0 - it's not working there. Could you elaborate on the "onImplicitObjectArgument"? There is no document on it on the clang page. So I wouldn't know how it works or what it does. Bes...
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/co...
2007 Oct 19
11
Patch idea for rspec_on_rails
I recently wrote a matcher for testing AR associations which allows you to specify things like: Foo.should have_many(:bars).through(:bazes) I''m pretty darned proud of it and a couple of people have suggested that I should submit it to the rspec_on_rails project. Before I go to the trouble of writing out rdoc a...
2011 Apr 16
11
added new cool matcher into my framework WatirSplash - #in
Hello! I''ve just added a new cool matcher #in into my framework WatirSplash and thought that this could be integrated into RSpec directly actually if there''s any interest. WatirSplash uses Watir (or Watir-like) frameworks for testing web pages via browser. If you''re not familiar with it then here is a short example how y...
2016 Nov 27
2
Looking for help with an ast matcher
...n, 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 > >: > >> Hi, >> >> Hope this is the right channel for this question. I am trying to make an >> ast matcher for clang-tidy to find str1.compare(str2), where both str1 and >> str2 are std::string. I have this so far: http://i.imgur.com/sUma9WC.png . >> But I am having a hard time finding a way to bind an id to the str1 part of >> the expression. >> >> Can anyone help me out w...
2007 Oct 25
0
Fwd: [ mocha-Feature Requests-15021 ] without or not params matcher
---------- Forwarded message ---------- From: noreply at rubyforge.org <noreply at rubyforge.org> Date: 25 Oct 2007 14:01 Subject: [ mocha-Feature Requests-15021 ] without or not params matcher To: noreply at rubyforge.org Feature Requests item #15021, was opened at 2007-10-24 15:33 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=7480&aid=15021&group_id=1917 Category: Interface Improvements (example) Group: None Status: Open Priority: 3 Submitted...
2020 Nov 12
2
Musings on the TableGen -emit-dag-isel backend
...---------------------------------------------------------------=== Total Execution Time: 733.6103 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...
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: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20190409/42d45ea8/attachmen...
2007 May 19
2
have_text matcher does not support should_not.
...yway, I have this: it "should not see Join 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) Jus...
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 attribu...
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-match...
2007 Jul 26
6
response.should_not redirect_to
Hey, May be it 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 redire...
2017 Mar 15
2
xapian core missing link to math on MSYS2
...lmann.o languages/.libs/lovins.o languages/.libs/norwegian.o languages/.libs/porter.o languages/.libs/portuguese.o languages/.libs/romanian.o languages/.libs/russian.o languages/.libs/spanish.o languages/.libs/swedish.o languages/.libs/turkish.o languages/.libs/stem.o languages/.libs/steminternal.o matcher/.libs/remotesubmatch.o matcher/.libs/andmaybepostlist.o matcher/.libs/andnotpostlist.o matcher/.libs/branchpostlist.o matcher/.libs/collapser.o matcher/.libs/exactphrasepostlist.o matcher/.libs/externalpostlist.o matcher/.libs/localsubmatch.o matcher/.libs/maxpostlist.o matcher/.libs/mergepostlist....
2020 Nov 13
4
Musings on the TableGen -emit-dag-isel backend
...-----------------------------------=== > Total Execution Time: 733.6103 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%) > Sor...
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-in...