getField returns the value of a field by name from a slog.Map.
(fields slog.Map, name string)
| 24 | |
| 25 | // getField returns the value of a field by name from a slog.Map. |
| 26 | func getField(fields slog.Map, name string) interface{} { |
| 27 | for _, f := range fields { |
| 28 | if f.Name == name { |
| 29 | return f.Value |
| 30 | } |
| 31 | } |
| 32 | return nil |
| 33 | } |
| 34 | |
| 35 | func sendBoundaryLogsRequest(t *testing.T, conn net.Conn, req *agentproto.ReportBoundaryLogsRequest) { |
| 36 | t.Helper() |
no outgoing calls
no test coverage detected