[go-nuts] [ANN] go-mutesting v1.1 - Mutation testing for Go source code

2018-11-01 Thread Markus Zimmermann
Hi gophers! I would like to announce v1.1 of go-mutesting https://github.com/zimmski/go-mutesting/releases/tag/v1.1 Changes from 1.0 to 1.1 - Mutator for the comparison operators “<”, “<=”, “>” and “>=” to catch off-by-one problems - Complete blacklist of reserved and built-in keywords tha

[go-nuts] Re: Why so many opt-out changes to test runs in 1.10?

2017-12-08 Thread Markus Zimmermann
I fully agree with Aaron. Both are fine additions but they should be opt-in instead of opt-out. "We" (and myself) have Vet in the linting stage of all of our projects. We do not want to run a static analysis in the test stage. Also, until the dependency issue is fixed for all possible scenarios

[go-nuts] What is the correct usage for the -msan flag?

2016-09-09 Thread Markus Zimmermann
Hi gophers! I am trying to integrate -msan for testing into https://github.com/go-clang/bootstrap using Go 1.7.1 and LLVM 3.9.0 inside an Ubuntu Trusty 64bit VM. The Kernel is 3.13.0. I am executing a test using the following command: CC=clang CGO_LDFLAGS="-L`llvm-config --libdir` -fsanitize=m

[go-nuts] Why is there no " declared and not used" compile error?

2016-09-12 Thread Markus Zimmermann
Hi gophers! I am wondering why we have a "declared and not used" compile error for variables [https://play.golang.org/p/KLzHVO5L7q] but not for constants [https://play.golang.org/p/JG9dSa_VKg]? I am sure there is some rational decision behind this that I have missed, but my Google-fu is just no

Re: [go-nuts] What is the correct usage for the -msan flag?

2016-09-13 Thread Markus Zimmermann
On Friday, September 9, 2016 at 1:51:49 PM UTC+2, Ian Lance Taylor wrote: > > I have the following questions concerning the usage of the -msan flag: > > a.) Are these the preferred arguments to use the -msan flag? > > Looks OK to me. > I am wondering if they are really needed, and if yes, why

[go-nuts] Re: Why is there no " declared and not used" compile error?

2016-09-13 Thread Markus Zimmermann
On Monday, September 12, 2016 at 3:41:35 PM UTC+2, adon...@google.com wrote: > > On Monday, 12 September 2016 08:57:15 UTC-4, Markus Zimmermann wrote: >> >> Hi gophers! >> >> I am wondering why we have a "declared and not used" compile error for >> v

[go-nuts] Re: Why is there no " declared and not used" compile error?

2016-09-13 Thread Markus Zimmermann
On Monday, September 12, 2016 at 3:21:50 PM UTC+2, Sjon Kosse wrote: > > Hello, > > Const values can be accesed still by reflection in a reasonable manner. > This question has come by quite a few times before on the mailing list, > better explanations should be easy to find. > I do not think tha

[go-nuts] Re: Why is there no " declared and not used" compile error?

2016-09-14 Thread Markus Zimmermann
On Tuesday, September 13, 2016 at 3:50:12 PM UTC+2, Alan Donovan wrote: > > On 13 September 2016 at 08:22, Markus Zimmermann > wrote: > >> On Monday, September 12, 2016 at 3:41:35 PM UTC+2, adon...@google.com >> wrote: >>> >>> unused constants and type

[go-nuts] Re: Why is there no " declared and not used" compile error?

2016-09-14 Thread Markus Zimmermann
On Wednesday, September 14, 2016 at 3:47:29 PM UTC+2, Chris Hines wrote: > > On Monday, September 12, 2016 at 8:57:15 AM UTC-4, Markus Zimmermann wrote: >> >> Hi gophers! >> >> I am wondering why we have a "declared and not used" compile error for

[go-nuts] Re: Why is there no " declared and not used" compile error?

2016-09-14 Thread Markus Zimmermann
On Wednesday, September 14, 2016 at 3:37:10 PM UTC+2, Alan Donovan wrote: > > On 14 September 2016 at 09:32, Markus Zimmermann > wrote: >> >> Do you think this might be worth bringing up in golang-dev? >> > > No. We can't make this change to the language

[go-nuts] Re: [ANN] Cgogen - automatic Go bindings generator released

2016-09-20 Thread Markus Zimmermann
This looks pretty neat. We did something similar for https://github.com/go-clang/ The generator is here https://github.com/go-clang/gen and a resulting binding is here https://github.com/go-clang/v3.7 Maybe we can find some inspiration from each others projects? It would be also interesting to

Re: [go-nuts] Re: [ANN] Cgogen - automatic Go bindings generator released

2016-09-28 Thread Markus Zimmermann
your changes :-) Contact me if you need any ideas/opinions. I mentioned some concerns about cgogen here https://github.com/go-clang/design/issues/9 if you are interested. I can also over my help in setting up TravisCI and Coveralls, and making the whole repository more "go-ish". On Tue

[go-nuts] Re: Deleting the /r/golang subreddit

2016-11-25 Thread Markus Zimmermann
Isn't this like saying a whole country is bad because of its president/leader? A whole community cannot be bad because of what one person did, nor can a whole company because of its CEO. golang-nuts/-dev would not be closed if one Google person behaves bad. We are a community of our own, we are

[go-nuts] [ANN] go-diff

2016-12-02 Thread Markus Zimmermann
Hi gophers! A while ago I took over maintainership of https://github.com/sergi/go-diff which is a package to diff, match and patch text. The original code is a port of Neil Fraser's google-diff-match-patch by Sergi Mansilla. I am almost finished with what I wanted to do when I started this, whi

[go-nuts] [ANN] go-mutesting v1.0 - Mutation testing for Go source code

2016-06-25 Thread Markus Zimmermann
Hi gophers! I would like to announce v1.0 of go-mutesting https://github.com/zimmski/go-mutesting The following has changed since the last release: - Added a build-in exec command so only the go-mutation binary is needed for mutation testing in the most common use-case. - Added a mutator for "c

[go-nuts] Re: ANNOUNCE: gini

2016-07-24 Thread Markus Zimmermann
I also would like to see some examples. Also, please make the whole project go-getable. Looking forward to see where this project is going, exciting! Can you link to the papers where you demonstrate that you outperform picosat and minisat? On Saturday, July 23, 2016 at 11:33:31 PM UTC+2, Scott

[go-nuts] How to capture stderr/stdout of cgo calls?

2016-07-25 Thread Markus Zimmermann
Given the following code https://play.golang.org/p/1_Q9SFIPjr one can see that stdout of Go and cgo are piped to two different descriptors. a.) Is it possible to redirect stderr/stdout of cgo calls directly to os.Stderr/os.Stdout? Am I overlooking some argument or options of cgo so that is done

[go-nuts] Re: How to capture stderr/stdout of cgo calls?

2016-08-04 Thread Markus Zimmermann
I feared that there would be no pure Go solution. Anyway, I used fdopen variant the code is here https://github.com/zimmski/osutil/blob/master/capture.go#L51 if anyone every stumbles over this thread. Thanks for the help. On Monday, July 25, 2016 at 1:00:46 PM UTC+2, Uli Kunitz wrote: > > Your

Re: [go-nuts] Re: How to capture stderr/stdout of cgo calls?

2016-08-04 Thread Markus Zimmermann
You are right Sebastien, I fixed that. Thanks! On Thursday, August 4, 2016 at 6:58:06 PM UTC+2, Sebastien Binet wrote: > > > > On Thu, Aug 4, 2016 at 1:07 PM, Markus Zimmermann > wrote: > >> I feared that there would be no pure Go solution. Anyway, I used fdopen >

[go-nuts] Re: How to capture stderr/stdout of cgo calls?

2016-08-05 Thread Markus Zimmermann
of > stdin/stdout as FILE*. > > > On Thursday, August 4, 2016 at 8:07:40 PM UTC+9, Markus Zimmermann wrote: >> >> I feared that there would be no pure Go solution. Anyway, I used fdopen >> variant the code is here >> https://github.com/zimmski/osutil/blob/master/c

[go-nuts] Re: ANNOUNCE: gini

2016-08-05 Thread Markus Zimmermann
gt; > > ★ > > > > > > > > ★ - ps wins > > ☆ - g768l w

Re: [go-nuts] Re: What are the options to fake SQL database for testing?

2021-07-27 Thread Markus Zimmermann
We switched from SQLite to PostgreSQL as our "in memory" database. We use an SQL database so we do not have to mock DB calls and maintain an interface. If that is something that is interesting i could trigger a blog post about what we did and why? On Tuesday, July 27, 2021 at 10:21:23 AM UTC+2

[go-nuts] Improving on unit test styles

2022-02-25 Thread &#x27;Markus Zimmermann' via golang-nuts
Hi Gophers! We were unhappy with the common unit test styles and we think we found a style that has clear advantages. An in-depth comparison can be found here https://symflower.com/en/company/blog/2022/better-table-driven-testing. We also added support for maintaining such tests in our VS Code

[go-nuts] Re: Improving on unit test styles

2022-02-28 Thread &#x27;Markus Zimmermann' via golang-nuts
are coming. Takes some time because we need to alternate between product work. On Friday, 25 February 2022 at 19:48:19 UTC+1 Markus Zimmermann wrote: > Hi Gophers! > > We were unhappy with the common unit test styles and we think we found a > style that has clear advantages. An in-d

[go-nuts] ANN: Basic test impact analysis (benchmark shows avg 29% reduction in test execution time atm)

2024-09-12 Thread &#x27;Markus Zimmermann' via golang-nuts
[image: with-go-test-with-test-runner.png] We implemented a basic test impact analysis that identifies and then executes affected tests for a change, e.g. for a range of commits. Our benchmark for the repositories we looked at shows an average 29% reduction in test execution time. I am very mu