Sebastien Binet
55c408dc44
bind: handling of private fields in struct.tp_init
...
Previously, the tp_init function being generated for a struct would try to fill
private fields from the args passed to __init__.
This obviously breaks Go's encapsulation mechanism.
Only allow public fields to be initialized from __init__.
Add a test.
Fixes #52 .
2015-08-31 18:40:47 +02:00
Sebastien Binet
d4e4779d2f
bind: first stab at wrapping interfaces
...
Change-Id: Ife9be87d97a1c796166c2ac204d7de0322326a94
2015-08-14 13:26:09 +02:00
Sebastien Binet
14b9cb2dba
bind: test for sq_inplace_concat
...
Change-Id: I4f25f62647cc99a7397afbb5f5bba1dee5484e3d
2015-08-12 19:07:09 +02:00
Sebastien Binet
e4d704fa3f
bind: fix typo in named-test
...
Change-Id: I761a1bd9b72e38f41198e681cb830766258a681e
2015-08-12 18:53:28 +02:00
Sebastien Binet
4c77c90e70
bind: test ctors for arrays+slices
...
Change-Id: I35a72f532713fa0a2668ec98080b715f01dbcae1
2015-08-12 18:13:32 +02:00
Sebastien Binet
41f904d5cc
bind: add test for pointers
...
(but disabled for now)
Updates #45
Change-Id: I0c8a2cce45f99d36ffb62b1f8f85f20703c00acb
2015-08-12 11:30:47 +02:00
Sebastien Binet
f6940af31c
bind: test typed constants and typenamed vars
2015-08-12 11:25:23 +02:00
Sebastien Binet
4db01df52d
bind: test docstrings of named types' methods
...
Change-Id: Ib625a14a09f9ce83bc814b9b8c0d431bddbce639
2015-08-12 08:49:06 +02:00
Sebastien Binet
577ca00d4b
gopy: add diff output when tests fail
...
Change-Id: I31c586aedb81a43676fd3e323b7adff82903ac1e
2015-08-11 19:22:06 +02:00
Sebastien Binet
7852de8d4b
bind: test empty structs
...
Change-Id: I9d30488e9dbc6244fa891a6a43725db775fe9ab1
2015-08-11 19:04:15 +02:00
Sebastien Binet
536b44dd2a
bind: test more basic named types ctor
...
Change-Id: Ibc519364561f464c2d00fd3836b3d01a4ce29a92
2015-08-11 18:55:57 +02:00
Sebastien Binet
90fb7cc80b
bind: test for ctors of named (basic) types
...
Change-Id: I8905392331546aa730652cee0a2192449964ef6d
2015-08-11 18:43:08 +02:00
Sebastien Binet
5d2cebb740
bind: test methods on named types
...
Change-Id: I054630e4973db94c132e17e99a1a8ff084fcea0f
2015-08-11 17:47:23 +02:00
Sebastien Binet
81520d13a5
bind: test type-check for struct-setters
...
Change-Id: Ic5a1afd53f60e5295e20cb4e4d0358fe87b1efc3
2015-08-10 19:23:16 +02:00
Sebastien Binet
8beaac7ff9
bind: test for kwargs for {hi.Couple,hi.People}.__init__
...
Change-Id: Idc35c979e4e67e26a8106aa05666e332834567d4
2015-08-10 18:02:49 +02:00
Sebastien Binet
8b6833f2ee
bind: test for empty packages
...
Change-Id: Iae1409084727254055e922e931df414dbd7db64d
2015-08-10 16:32:31 +02:00
Sebastien Binet
73845d817e
bind: add test for 'simple' package
...
Change-Id: If0bd1c6ba29d4916990c756bec25e2e80da94c6d
2015-08-10 15:38:06 +02:00
Sebastien Binet
e4c2aa347a
bind: test for tp_call
...
Change-Id: Ibd4db613a7ba2256a195e79ad66314cad1aea40a
2015-08-10 15:28:26 +02:00
Sebastien Binet
e4cb25c2e4
all: use cpkg to print via C-stdio so outputs are sync'd with python's i/o layer
...
Change-Id: If1dfa6e3cbb74cf4cd4852ea6db850c3318b388b
2015-08-10 09:41:44 +02:00
Sebastien Binet
806eaacb48
bind: test buffer protocol
...
Change-Id: I41744bf84a6dc87ee8a372e490068465c248ddd1
2015-08-06 10:01:00 +02:00
Sebastien Binet
ba12ccb5ef
bind: test __setitem__
...
Change-Id: I97c4d6f410b0995f0d34762918b58828da5ae94f
2015-08-05 19:42:24 +02:00
Sebastien Binet
631a4f7d59
bind: test __getitem__
...
Change-Id: Ic566ca370f15206288cf493e4a586e8e996a3b93
2015-08-05 17:49:42 +02:00
Sebastien Binet
45b32c5643
bind: test __len__
...
Change-Id: I17dbafd6014bcc2ca6faafd46a4bd50fb1693a33
2015-08-05 17:49:42 +02:00
Sebastien Binet
d9a04c9f10
test: poor man's test of x-ref GC
...
Change-Id: I674eb89abd2bdc1b4f2505974b6223ec9a19f79d
2015-08-03 13:24:48 +02:00
Sebastien Binet
a1e9c1317a
bind: more tests for Couple
2015-07-31 17:13:45 +02:00
Sebastien Binet
64de09f092
bind: test top-level vars+consts
2015-07-31 16:54:24 +02:00
Sebastien Binet
6cd8c71b94
bind: groundwork+test for structs with struct values
2015-07-30 16:06:31 +02:00
Sebastien Binet
405ce0ee56
bind: test for exception type
2015-07-29 17:46:02 +02:00
Sebastien Binet
1d5a0689b9
bind: test ctors
2015-07-29 17:32:51 +02:00
Sebastien Binet
b08c745bd9
bind: expose ctors at module level. fix ctors doc extraction
2015-07-29 16:54:26 +02:00
Sebastien Binet
a3bdde49c1
bind: test comma-err pythonization
2015-07-29 14:50:02 +02:00
Sebastien Binet
44abf5c71e
bind: test exception support
2015-07-29 14:15:31 +02:00
Sebastien Binet
59a16dec60
bind: test __repr__
2015-07-29 12:37:32 +02:00
Sebastien Binet
d6d6d01ece
bind: test getter/setter
2015-07-29 11:44:37 +02:00
Sebastien Binet
b7b84b89bc
test: hi.Person.String
2015-07-28 10:08:27 +02:00
Sebastien Binet
37a7f18235
test: update
2015-07-28 10:06:20 +02:00
Sebastien Binet
63da525aa1
bind: test hi.Person.Greet + doc(hi.Person.Greet)
2015-07-27 18:57:27 +02:00
Sebastien Binet
f4f8220837
all: tests more of module generation
2015-07-27 18:46:30 +02:00
Sebastien Binet
744ab46aef
all: gopy-gen -> gopy
2015-07-24 16:16:31 +02:00