mediamtx/internal/conf
Eng Zer Jun f335fc67f9
test: use t.Setenv to set env vars in tests (#2722)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-11-20 17:34:56 +01:00
..
decrypt
env test: use t.Setenv to set env vars in tests (#2722) 2023-11-20 17:34:56 +01:00
yaml
auth_method.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
conf_test.go test: use t.Setenv to set env vars in tests (#2722) 2023-11-20 17:34:56 +01:00
conf.go apidocs: add missing recording settings to PathConf (#2705) 2023-11-16 22:47:01 +01:00
credential.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
encryption.go webrtc: improve connectivity mechanism (#2686) 2023-11-12 23:55:28 +01:00
global.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
hls_variant.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
ips_or_cidrs.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
log_destination.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
log_level.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
optional_global.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
optional_path.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
path.go allow using 'fallback' with static sources (#2606) (#2706) 2023-11-16 23:37:43 +01:00
protocol.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
record_format.go support recording to MPEG-TS (#2505) 2023-10-14 22:52:10 +02:00
rtsp_range_type.go support recording to MPEG-TS (#2505) 2023-10-14 22:52:10 +02:00
rtsp_transport.go rename sourceProtocol into rtspTransport, sourceAnyPortEnable into rtspAnyPort (#2644) 2023-11-04 11:12:22 +01:00
string_duration.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
string_size.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
webrtc_ice_server.go webrtc: allow using special characters in ICE server credentials (#1953) (#2000) 2023-06-30 16:47:10 +02:00