Skip to content

Commit

Permalink
feat: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Sep 11, 2023
1 parent 12a7452 commit a6c7c7e
Showing 1 changed file with 19 additions and 31 deletions.
50 changes: 19 additions & 31 deletions service/httpreadme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,19 @@ func ExampleNewHTTPReadme() {
//
// List of all accessed environment variables.
//
// | Key | Type | Required | Default |
// | --------------------------------------- | -------- | -------- | ------- |
// | `EXAMPLE_BOOL` | `bool` | | |
// | `EXAMPLE_REQUIRED_BOOL` | `bool` | | |
// | `EXAMPLE_REQUIRED_BOOL` | `bool` | `true` | |
// | `EXAMPLE_REQUIRED_STRING` | `string` | | |
// | `EXAMPLE_REQUIRED_STRING` | `string` | `true` | |
// | `EXAMPLE_STRING` | `string` | | `demo` |
// | `LOG_DISABLE_CALLER` | `bool` | | |
// | `LOG_DISABLE_STACKTRACE` | `bool` | | |
// | `LOG_ENCODING` | `string` | | `json` |
// | `LOG_LEVEL` | `string` | | `info` |
// | `LOG_MODE` | `string` | | `prod` |
// | `OTEL_ENABLED` | `bool` | | |
// | `OTEL_MONGO_COMMAND_ATTRIBUTE_DISABLED` | `bool` | | |
// | `OTEL_MONGO_ENABLED` | `bool` | | |
// | Key | Type | Required | Default |
// | ------------------------- | -------- | -------- | ------- |
// | `EXAMPLE_BOOL` | `bool` | | |
// | `EXAMPLE_REQUIRED_BOOL` | `bool` | | |
// | `EXAMPLE_REQUIRED_BOOL` | `bool` | `true` | |
// | `EXAMPLE_REQUIRED_STRING` | `string` | | |
// | `EXAMPLE_REQUIRED_STRING` | `string` | `true` | |
// | `EXAMPLE_STRING` | `string` | | `demo` |
// | `LOG_DISABLE_CALLER` | `bool` | | |
// | `LOG_DISABLE_STACKTRACE` | `bool` | | |
// | `LOG_ENCODING` | `string` | | `json` |
// | `LOG_LEVEL` | `string` | | `info` |
// | `LOG_MODE` | `string` | | `prod` |
//
// ### Config
//
Expand Down Expand Up @@ -129,20 +126,11 @@ func ExampleNewHTTPReadme() {
//
// List of all registered closers that are being called during graceful shutdown.
//
// | Name | Type | Closer | Description |
// | ---------------- | ---------------------- | ------------------------ | -------------------------------------- |
// | | `*keelmongo.Persistor` | `ErrorCloserWithContext` | |
// | `demo-goroutine` | `*service.GoRoutine` | `ErrorCloserWithContext` | parallel: `1` |
// | `demp-http` | `*service.HTTP` | `ErrorCloserWithContext` | `http.HandlerFunc` on `localhost:8080` |
// | `readme` | `*service.HTTP` | `ErrorCloserWithContext` | `*http.ServeMux` on `localhost:9001` |
//
// ### Mongo
//
// List of all used mongo collections.
//
// | Database | Collection | Indices |
// | -------- | ---------- | ------------------------ |
// | `dummy` | `dummy` | `id_1`, `id_1_version_1` |
// | Name | Type | Closer | Description |
// | ---------------- | -------------------- | ------------------------ | -------------------------------------- |
// | `demo-goroutine` | `*service.GoRoutine` | `ErrorCloserWithContext` | parallel: `1` |
// | `demp-http` | `*service.HTTP` | `ErrorCloserWithContext` | `http.HandlerFunc` on `localhost:8080` |
// | `readme` | `*service.HTTP` | `ErrorCloserWithContext` | `*http.ServeMux` on `localhost:9001` |
//
// ### Metrics
//
Expand Down Expand Up @@ -176,7 +164,7 @@ func ExampleNewHTTPReadme() {
// | `go_memstats_stack_inuse_bytes` | GAUGE | Number of bytes in use by the stack allocator. |
// | `go_memstats_stack_sys_bytes` | GAUGE | Number of bytes obtained from system for stack allocator. |
// | `go_memstats_sys_bytes` | GAUGE | Number of bytes obtained from system. |
// | `go_threads` | GAUGE | Number of OS threads created. |//
// | `go_threads` | GAUGE | Number of OS threads created. |
// | `process_cpu_seconds_total` | COUNTER | Total user and system CPU time spent in seconds. |
// | `process_max_fds` | GAUGE | Maximum number of open file descriptors. |
// | `process_open_fds` | GAUGE | Number of open file descriptors. |
Expand Down

0 comments on commit a6c7c7e

Please sign in to comment.