You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-82Lines changed: 0 additions & 82 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,85 +91,3 @@ go run examples/sip_client.go -server 127.0.0.1:5060 -user alice
91
91
- INVITE: Call initiation
92
92
- BYE: Call termination
93
93
- ACK: Acknowledgment handling
94
-
95
-
## Testing
96
-
97
-
Run the test suite with:
98
-
99
-
```
100
-
go test ./...
101
-
```
102
-
103
-
This will run all tests in all packages. The test suite includes:
104
-
105
-
- Unit tests for SIP message parsing and generation
106
-
- Mock-based tests for the SIP server
107
-
- Configuration file handling tests
108
-
- Command-line argument parsing tests
109
-
110
-
For more verbose output, add the `-v` flag:
111
-
112
-
```
113
-
go test -v ./...
114
-
```
115
-
116
-
For race condition detection:
117
-
118
-
```
119
-
go test -race ./...
120
-
```
121
-
122
-
### Testing Requirements
123
-
124
-
Tests require a `testdata` directory with test configuration files. This is automatically created when running tests via GitHub Actions, but for local testing you might need to create it:
4. For more detailed debugging, run tests one package at a time:
169
-
```bash
170
-
go test -v github.com/user/go-sip/sip
171
-
```
172
-
173
-
## Disclaimer
174
-
175
-
This is a simple SIP server for demonstration purposes and is not recommended for production use. A real SIP server requires additional features such as authentication, security, and full SIP specification support.
0 commit comments