Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make documentation great again #151

Merged
merged 26 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a2d1a91
readme: remove commented out travis-ci badge
ligurio Mar 31, 2022
830806d
readme: add badges
ligurio Mar 30, 2022
b608826
readme: update description
ligurio Apr 20, 2022
cdce54c
doc: update inline comments
ligurio Mar 30, 2022
eba0aeb
queue: make example executable
ligurio Mar 30, 2022
2585a15
readme: move queue example to tests
ligurio Mar 30, 2022
4c38d9f
readme: move usage examples to tests
ligurio Mar 30, 2022
56cba67
example: make examples more compact
ligurio Apr 12, 2022
ca994c8
readme: move uuid example to tests
ligurio Mar 30, 2022
ebb4eb0
readme: move schema example to tests
ligurio Mar 30, 2022
0897e6b
readme: move custom unpacking example to tests
ligurio Mar 30, 2022
2050230
readme: move description of options to inline comment
ligurio Mar 30, 2022
514e106
readme: move description of multiple connections to comment
ligurio Apr 11, 2022
ba02544
multi: add documentation comments
ligurio Mar 31, 2022
2e5515f
multi: add examples for connect functions
ligurio Apr 11, 2022
67e0df4
readme: update section about testing
ligurio Mar 31, 2022
dbef3fd
readme: update section about installation
ligurio Mar 31, 2022
e6a045e
readme: move section about testing to contributing guide
ligurio Apr 6, 2022
675b5c4
contributing: describe first steps
ligurio Apr 6, 2022
17c9346
readme: update section about API reference
ligurio Mar 31, 2022
cbb0ea3
readme: remove hello world example
ligurio Apr 14, 2022
2a36168
readme: remove help section
ligurio Apr 14, 2022
d6ff9b4
readme: merge documentation sections into single one
ligurio Apr 7, 2022
8384e84
readme: update section about alternative connectors
ligurio Apr 20, 2022
392d004
changelog: add entry about updated documentation
ligurio Apr 12, 2022
20c78db
license: bump copyright year
ligurio Apr 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Versioning](http://semver.org/spec/v2.0.0.html) except to the first release.
- Handle everything with `go test` (#115)
- Use plain package instead of module for UUID submodule (#134)
- Reset buffer if its average use size smaller than quater of capacity (#95)
- Update API documentation: comments and examples (#123).

## [1.5] - 2019-12-29

Expand Down
39 changes: 39 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Contribution Guide

## First steps

Clone the repository and install dependencies.

```sh
$ git clone [email protected]:/tarantool/go-tarantool
$ cd go-tarantool
$ go get .
```

## Running tests

You need to [install Tarantool](https://tarantool.io/en/download/) to run tests.
See the Installation section in the README for requirements.

To install test dependencies (such as the
[tarantool/queue](https://github.com/tarantool/queue) module), run:
```bash
make deps
```

To run tests for the main package and each subpackage:
```bash
make test
```

The tests set up all required `tarantool` processes before run and clean up
afterwards.

If you want to run the tests for a specific package:
```bash
make test-<SUBDIR>
```
For example, for running tests in `multi`, `uuid` and `main` packages, call
```bash
make test-multi test-uuid test-main
```
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 2-Clause License

Copyright (c) 2014-2017, Tarantool AUTHORS
Copyright (c) 2014-2022, Tarantool AUTHORS
Copyright (c) 2014-2017, Dmitry Smal
Copyright (c) 2014-2017, Yura Sokolov aka funny_falcon
All rights reserved.
Expand Down
26 changes: 25 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,32 @@ deps: clean

.PHONY: test
test:
go test ./... -v -p 1

.PHONY: test-multi
DifferentialOrange marked this conversation as resolved.
Show resolved Hide resolved
test-multi:
@echo "Running tests in multiconnection package"
go clean -testcache
go test ./multi/ -v -p 1

.PHONY: test-queue
test-queue:
@echo "Running tests in queue package"
cd ./queue/ && tarantool -e "require('queue')"
go clean -testcache
go test ./queue/ -v -p 1

.PHONY: test-uuid
test-uuid:
@echo "Running tests in UUID package"
go clean -testcache
go test ./uuid/ -v -p 1

.PHONY: test-main
test-main:
@echo "Running tests in main package"
go clean -testcache
go test ./... -v -p 1
go test . -v -p 1

.PHONY: coverage
coverage:
Expand Down
Loading