Commit graph

299 commits

Author SHA1 Message Date
Marius Orcsik
6b75ad6d68
Fix quotes being kept for string type aliases in UnmarshalJSON methods 2018-07-18 16:29:47 +02:00
Marius Orcsik
12f481a243
Adding mediaType to Object 2018-07-18 16:27:53 +02:00
Marius Orcsik
44bcbcfb3a
Adding/cleaning up some more function comments 2018-07-16 16:38:15 +02:00
Marius Orcsik
9a140c8036
Add tests for methods of various Collection objects 2018-07-16 15:48:37 +02:00
Marius Orcsik
8758b44a70
Adding tests for URI/IRI methods 2018-07-16 15:48:02 +02:00
Marius Orcsik
8308c6fb22
Converted the jsonld context to be an empty interface
This allows us to support passing it just as a string or URI
2018-07-16 13:26:26 +02:00
Marius Orcsik
327128b67f
Added initializer function for liked
Made Liked objects conform to ObjectOrLink, and Collection interfaces
2018-07-13 10:17:50 +02:00
Marius Orcsik
66767f675a
Made URI and IRI conform to the LinkOrUri interface
Added a convenience String method
2018-07-13 10:17:03 +02:00
Marius Orcsik
551072e561
Added initializer function for outbox
Made Outbox/Inbox objects conform to ObjectOrLink interface
2018-07-13 10:16:06 +02:00
Marius Orcsik
08d5f269c2
Added GetLink method to LinkOrUri interface
Made ObjectOrLink interface extend ActivityObject
2018-07-13 10:15:14 +02:00
Marius Orcsik
a60599cd02
Add outbox and liked initializations to person
Made Person conform to the LinkOrUri interface
2018-07-13 10:13:31 +02:00
Marius Orcsik
5d39ddce9a
Output the @context key when marshalling 2018-07-09 11:15:19 +02:00
Marius Orcsik
03a378280c
Updating types that can satisfy the Collection interface 2018-07-07 21:27:34 +02:00
Marius Orcsik
8bd5130d0f
Move the context to a package variable 2018-07-06 22:33:47 +02:00
Marius Orcsik
978985644e
Refactored how the repo looks 2018-07-06 12:48:04 +02:00
Marius Orcsik
133344f2a9
Adding start for json parser based unmarshall 2018-06-15 23:03:55 +02:00
Marius Orcsik
7f8193dff8
Refactored objects to include full AP structure 2018-06-09 14:05:46 +02:00
Marius Orcsik
55e0d31a75
Broken tests 2018-06-09 13:08:30 +02:00
Marius Orcsik
68c4bc41df
Renamed Object to BaseObject 2018-06-09 13:06:55 +02:00
Marius Orcsik
a3bf45d0c4
Forgot to rename Id -> ID in Link tests 2018-06-07 21:25:35 +02:00
Marius Orcsik
2c2e1c9f2f
Proper LinkType 2018-06-07 17:46:34 +02:00
Marius Orcsik
4d896fc154
Forgot to implement GetObject and GetLink for Link objects 2018-06-07 17:46:22 +02:00
Marius Orcsik
2ecb5245ec
Added marshalling tests based on json mock files 2018-06-07 16:48:08 +02:00
Marius Orcsik
a28fd115cd
Added some more unmarshalling for objects 2018-06-07 16:32:26 +02:00
Marius Orcsik
175fd5fdeb
Added basic unmarshalling for objects with jsonld context 2018-06-07 15:32:14 +02:00
Marius Orcsik
1997a54824
Renamed apObject to Object 2018-06-06 15:32:26 +02:00
Marius Orcsik
7dc3fad40e
Added tests for RecipientsDeduplication on Activities
So much code for so little testing
2018-06-05 21:55:03 +02:00
Marius Orcsik
74f69f09c6
Added test for ensuring a block's object is not present in the recipients list 2018-06-05 21:20:28 +02:00
Marius Orcsik
fb06930a59
Simplify exporting the GOPATH 2018-06-05 21:04:42 +02:00
Marius Orcsik
55a57cc61e
Added test for ensuring an activity's actor is removed from the recipients list
Adding RecipientsDeduplication method on Activity* structs
2018-06-05 21:04:36 +02:00
Marius Orcsik
34a6823db2
Add test make targets 2018-04-11 21:03:41 +02:00
Marius Orcsik
568626c815
Use Codacy badge instead of go report card 2018-04-10 21:56:05 +02:00
Marius Orcsik
26b14c3d0c
Adding stubs for common server tests 2018-04-10 21:33:47 +02:00
Marius Orcsik
4b40a20e0d
Add stubs for next tests from the server to server suite 2018-04-10 21:32:58 +02:00
Marius Orcsik
65343bb33c
Refactored the s2s tests and added some output info about each one 2018-04-10 20:29:55 +02:00
Marius Orcsik
1666adef28
Make sure we can receive an null pointer when testing for duplicates 2018-04-10 20:12:08 +02:00
Marius Orcsik
9e61b5fcea
Test deduplication with two object arrays 2018-04-10 20:09:06 +02:00
Marius Orcsik
247c71a767
Adding some unit-tests for the new functionality 2018-04-10 19:56:14 +02:00
Marius Orcsik
87463896d5
Adding type for ObjectOrInterface arrays
Making this type play nice as a Collection interface

Adding RecipientsDeduplication mechanism with integratoin test
2018-04-10 17:53:05 +02:00
Marius Orcsik
3fffab61ed
Add inbox initialization at actor creation 2018-04-09 13:12:08 +02:00
Marius Orcsik
9b94b44d18
Implement some functionality for the Append to Collection and OrderedCollection 2018-04-09 13:10:27 +02:00
Marius Orcsik
cb7f8c56f5
Use Actor type for Actor element of IntransitiveActivity 2018-04-09 12:28:52 +02:00
Marius Orcsik
0cfdd8a760
Replace coveralls badge with codecov 2018-04-09 10:07:55 +02:00
Marius Orcsik
62a4201b78
Try to use codecov.io 2018-04-09 09:40:54 +02:00
Marius Orcsik
6ed7816d61
Remove courtney from travis 2018-04-09 00:51:38 +02:00
Marius Orcsik
782ca4f484
Add final test for Object.Link() 2018-04-09 00:51:26 +02:00
Marius Orcsik
35e465347c
Add more coverage to Actor and Person 2018-04-09 00:44:36 +02:00
Marius Orcsik
c8ef17f530
Add coverage to Mention.Object() and Mention.Link() 2018-04-09 00:40:37 +02:00
Marius Orcsik
30b8aa780a
Adding more coverage for CreateActivityNew 2018-04-09 00:25:06 +02:00
Marius Orcsik
c362594d82
Adding some other tests from json package 2018-04-08 23:39:55 +02:00