Joe Turki
8867eb8597
Update lint rules, force testify/assert for tests
...
Use testify's assert package instead of the standard library's testing
package.
2025-04-07 02:59:21 +02:00
Joe Turki
0397f2187b
Upgrade golangci-lint, more linters
...
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
2025-01-18 10:57:33 -06:00
Sean DuBois
b2812c84a7
Fix linter errors
...
golangci-lint upgrade to v1.56.2 added more checks
Relates to pion/.goassets#201
2024-03-16 20:19:07 -04:00
Steffen Vogel
1b14963401
Add stun.DialURI() to create a client from a URI
...
Depending on the schema and transport, this function
establishes also encrypted connections via TLS/DTLS.
2023-05-10 12:10:26 +02:00
Steffen Vogel
ab3e9f2f89
Make package REUSE compliant
2023-04-18 13:19:15 +02:00
Steffen Vogel
9dd1b53529
Fix new golangci-lint errors
2023-04-12 10:22:35 +02:00
Steffen Vogel
daa5ee7e29
Fix typos
2023-04-12 10:22:35 +02:00
Steffen Vogel
7c533756a6
Harmonize nolint directives
2023-04-12 10:22:35 +02:00
Pion
3d933930cc
Update CI configs to v0.7.2
...
Update lint scripts and CI configs.
Excluding codecov.yml.
2022-04-27 21:48:56 -04:00
Pion
c15bbe4175
Update CI configs to v0.4.12
...
Update lint scripts and CI configs.
Excluding codecov.yml.
2020-11-06 21:39:16 -08:00
Sean DuBois
1d24ef2382
Fix Public API Breakage
...
stun.TransactionID can't be changed, reverting
for now.
Resolves pion/demo-conference#7
2020-10-01 14:18:50 -07:00
ZHENK
85839ae560
Update CI configs to v0.4.7
...
Update lint scripts and CI configs.
Excluding codecov.yml.
2020-09-29 23:53:36 -07:00
Pion
c044f70398
Update CI configs to v0.4.5
...
Update lint scripts and CI configs.
Excluding codecov.yml.
2020-09-09 21:34:39 -07:00
Christian Muehlhaeuser
d2ab72ecec
Unlambda test functions
...
No need to wrap these functions, they already have a matching signature.
2020-05-29 01:37:05 -07:00
Atsushi Watanabe
05f7805874
Fix lint errors
...
* Ignore disallowed-functions errors
TODO:
- Handle unintended input as error instead of panic.
- Make executables only for testing as Go test.
* Fix filename lint error
Replace hyphen by underscore.
* Disable godox linter
2020-05-06 00:26:51 -07:00
Maanas Royy
10faffcc1a
Unlambda test functions
...
No need to wrap these functions, they already have a matching signature.
Added the changes from the gortc/stun
Commit:
68f3da9cd0b6e3de5d3029331c7b4ad7705f1064 [68f3da9]
Parents: 099323126f
Author: Christian Muehlhaeuser <muesli@gmail.com >
Date: 22 July 2019 at 2:59:31 PM GMT+8
2020-02-12 12:40:01 +08:00
Aleksandr Razumov
3c40912f48
client: add WithNoConnClose option
2019-04-27 21:48:15 +03:00
Aleksandr Razumov
2e1364c36a
test: don't dial to zero port
2018-09-06 11:04:37 +03:00
Aleksandr Razumov
382848e43d
client: update TestCallbackWaitHandler_HandleEvent for coverage
2018-08-18 02:30:34 +03:00
Aleksandr Razumov
45872027dd
client: fix transaction timeout calculation
2018-08-18 02:26:52 +03:00
Aleksandr Razumov
e27a816226
client: guard s.callback with s.cond.L in callbackWaitHandler
2018-08-18 00:21:54 +03:00
Aleksandr Razumov
85f8e8270d
client: add TestClient_HandleProcessError
2018-08-16 20:33:54 +03:00
Aleksandr Razumov
b5f45e6ee8
client: increase testing timeouts
...
Seems like windows builder has low timer resolution
2018-08-16 20:16:23 +03:00
Aleksandr Razumov
2e153977ca
client: remove mistaken auto-import
2018-08-16 20:13:03 +03:00
Aleksandr Razumov
ba5886b6a6
client: cover WithNoRetransmit better
2018-08-16 20:10:51 +03:00
Aleksandr Razumov
1bd3f8cab9
client: also test StopErr in TestClientRTOWriteErr
2018-08-16 20:09:47 +03:00
Aleksandr Razumov
524765a323
client: add TestClientRTOAgentErr
2018-08-16 20:02:27 +03:00
Aleksandr Razumov
25d8a78934
client: add TestClientRTOWriteErr
2018-08-16 19:57:45 +03:00
Aleksandr Razumov
c55347ebb4
client: add TestClientRTOStartErr
2018-08-16 19:55:41 +03:00
Aleksandr Razumov
97de852fc6
client: change order of options in TestWithNoRetransmit for better cover
2018-08-13 19:13:39 +03:00
Aleksandr Razumov
fd3ed9f3d6
client: add "No retransmit" mode.
...
Fixes #40
2018-08-13 18:51:14 +03:00
Aleksandr Razumov
d1aae67291
client: add TestClientClosedStart
2018-08-13 18:14:25 +03:00
Aleksandr Razumov
6340d47a3b
client: add TestClientDefaultHandler
2018-08-13 18:08:42 +03:00
Aleksandr Razumov
3f68426604
client: use ClientOption variadic instead of ClientOptions struct
2018-08-13 14:27:27 +03:00
Aleksandr Razumov
6743b3bf2f
client: add TestClient_Close
2018-08-13 11:20:45 +03:00
Aleksandr Razumov
0fe96b76a1
client: add TestNewClient
2018-08-13 11:17:56 +03:00
Aleksandr Razumov
29b07afea1
{agent,client: add NoopHandler
2018-08-11 20:22:21 +03:00
Aleksandr Razumov
4b75dfd8f1
client: make concurrent reads in TestClient_DoConcurrent
2018-08-11 20:13:44 +03:00
Aleksandr Razumov
3a8c498f4a
client: add concurrency tests
2018-08-11 20:06:46 +03:00
Aleksandr Razumov
66fcc03af3
client: don't use concurrency in agent.start
2018-08-11 17:15:25 +03:00
Aleksandr Razumov
ee6a265c7b
client: add TestClientRetransmission
2018-08-11 17:08:33 +03:00
Aleksandr Razumov
5005255e13
client: add TestClient_Start
2018-08-09 14:12:45 +03:00
Aleksandr Razumov
710e8d6cd4
client: run Do bench concurrently
2018-08-09 03:11:41 +03:00
Aleksandr Razumov
e2fc3e0669
{agent,client}: use single handler in Agent
2018-08-09 02:56:14 +03:00
Aleksandr Razumov
dbf17d2d66
{agent,client}: implement RTO in Client
2018-08-09 01:29:18 +03:00
Aleksandr Razumov
9c4514b361
client: add TestCallbackWaitHandler
...
Coverage is kinda flaky without that explicit test
2018-08-08 23:45:39 +03:00
Aleksandr Razumov
d29ebc8197
{agent,client}: use function-based handler
...
This breaks backward compatibility, however, Agent and Client
are unstable and can change now.
2018-08-08 23:30:57 +03:00
Aleksandr Razumov
a6a172c214
{agent,client}: fix data races
2018-07-22 07:53:59 +03:00
Aleksandr Razumov
4eadb3089b
client: fix linters
2018-04-29 14:36:13 +03:00
Aleksandr Razumov
c8306cf2af
client: improve finalizer test
2018-04-29 14:28:29 +03:00