src/census/plugins/__tests__/http.spec.ts
File http.spec.ts
has 316 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Copyright 2018, OpenCensus Authors
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
Function assertSpanAttributes
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
span: Span, httpStatusCode: number, httpMethod: string, hostName: string,
path: string, userAgent?: string) {
Function doNock
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
url: string, path: string, httpCode: number, respBody: string,
times?: number) {