pascaldekloe / goe Goto Github PK
View Code? Open in Web Editor NEWenterprise tooling
License: Creative Commons Zero v1.0 Universal
enterprise tooling
License: Creative Commons Zero v1.0 Universal
LICENSE file contains no license.
The only relevant thing in there is
To the extent possible under law, Pascal S. de Kloe has waived all copyright and related or neighboring rights to GoE.
Whatever "GoE" is (organisation?) the abose sentence disclaims copyright in favor of "GoE" and implicit "All Rights Reserverd" still applies.
Information related to licensing is in the README.md
but it would be best to mention it in LICENSE
file as well.
Using the verify function, works perfect except if a Big.Rat variable is found in the "want" parameter. For example, this struct give problems due to that value:
&Effect{
InvoiceLineID: 400057,
Value: big.NewRat(200, 1),
Spend: big.NewRat(30, 1),
},
Also I'm attaching the log.
Thanks :D
The following test case shows that reflect.DeepEqual
can compare private fields whereas verify.Values
cannot. Tested with Go 1.8
type A struct {
x bool
}
func TestA(t *testing.T) {
got, want := &A{true}, &A{false}
fmt.Println("DeepEqual:", reflect.DeepEqual(got, want))
verify.Values(t, "", got, want)
}
This prints
=== RUN TestA
DeepEqual: false
--- FAIL: TestA (0.00s)
values.go:22: verification for at fsm_test.go:19:
/%!s(<nil>): Can't read private fields
FAIL
exit status 1
It would be super cool to have an exclude list for the verify function. Sometimes the match is gonna be between complex or deep structs and right now is mandatory to provide an exact struct match. Which is perfect plenty of times, but in some scenarios could be interesting to just care about specific values for the match.
Like, let's suppose that I'm expecting an struct like:
type PeriodCalc struct {
Something string
Blablabla string
Value string
Trace []*Log
}
But maybe I don't care about this Trace array and I want just to ignore it and check the other variables.
Hello !
Could you add the license please ?
Thank you
README and LICENSE have conflicting copyright statements.
Former claims that copyright is waived to "Public Domain" (i.e. there is no copyright) but the latter attribute copyright to Go Enterprice (whatever it is).
Which is the correct one?
I sincerely hope that intention was to wave off copyright entirely, instead of assigning it to some misterious entity. Nothing relevant comes up when I search for "Go Enterprice"...
I recommend to replace "Go Enterprice" with "public domain" because "Public Domain" is a term that CC0 waiver refers to.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.