Hi,

I wrote a tool  for validating regular expressions using 
golang.org/x/tools/go/analysis and want to test it using 
golang.org/x/tools/go/analysis/analysistest.

The problem is that the tool is using comments to indicates line to check, 
which doesn't work well with the "// want" comments used by analysistest.

You can see the tool at https://github.com/tebeka/recheck

The closest I got was using comments like:

    handleFunc(handler, "/users/{id:[0-9+}") // recheck:1 // want `missing 
closing ] in "[0-9+}\""`

But this now fails with 
    in 'want' comment: error parsing regexp: missing closing ]: `[a-zA-Z\""`

Any ideas how can I make this work?

Thanks,
Miki

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/42b84aed-946e-4ea5-9fd3-9edf50da9e4bn%40googlegroups.com.

Reply via email to