Lint Tests Passing
All checks were successful
Continuous Integration / CI (push) Successful in 1m40s

Made lint tests pass
This commit is contained in:
sjc
2025-05-08 00:36:03 -04:00
parent 1f5d003470
commit ada6d2d440
14 changed files with 39 additions and 39 deletions

View File

@@ -12,7 +12,7 @@ func TestQueryFutures(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"data": {"items": [{"symbol": "AAPL"}]}}`))
_,_ = rw.Write([]byte(`{"data": {"items": [{"symbol": "AAPL"}]}}`))
}))
defer server.Close()
@@ -52,7 +52,7 @@ func TestQueryFuturesWithParams(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"data": {"items": [{"symbol": "AAPL", "product-code": "123"}]}}`))
_,_ = rw.Write([]byte(`{"data": {"items": [{"symbol": "AAPL", "product-code": "123"}]}}`))
}))
defer server.Close()
@@ -85,7 +85,7 @@ func TestGetFuture(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"data": {"symbol": "AAPL"}}`))
_,_ = rw.Write([]byte(`{"data": {"symbol": "AAPL"}}`))
}))
defer server.Close()
@@ -107,7 +107,7 @@ func TestGetFutureOptionProduct(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"context": "test", "data": {"root-symbol": "AAPL"}}`))
_,_ = rw.Write([]byte(`{"context": "test", "data": {"root-symbol": "AAPL"}}`))
}))
defer server.Close()
@@ -133,7 +133,7 @@ func TestListFutureOptions(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL", "instrument-type": "future-option"}]}}`))
_,_ = rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL", "instrument-type": "future-option"}]}}`))
}))
defer server.Close()
@@ -163,7 +163,7 @@ func TestListFutureOptionChainsNested(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"context": "test", "data": {"futures": [{"symbol": "AAPL"}], "option-chains": [{"underlying-symbol": "AAPL"}]}}`))
_,_ = rw.Write([]byte(`{"context": "test", "data": {"futures": [{"symbol": "AAPL"}], "option-chains": [{"underlying-symbol": "AAPL"}]}}`))
}))
defer server.Close()
@@ -201,7 +201,7 @@ func TestListFutureOptionChainsDetailed(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL", "underlying-symbol": "AAPL"}]}}`))
_,_ = rw.Write([]byte(`{"context": "test", "data": {"items": [{"symbol": "AAPL", "underlying-symbol": "AAPL"}]}}`))
}))
defer server.Close()
@@ -235,7 +235,7 @@ func TestGetFutureOption(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"context": "test", "data": {"symbol": "AAPL", "instrument-type": "future-option"}}`))
_,_ = rw.Write([]byte(`{"context": "test", "data": {"symbol": "AAPL", "instrument-type": "future-option"}}`))
}))
defer server.Close()
@@ -261,7 +261,7 @@ func TestListFutureOptionProducts(t *testing.T) {
if req.URL.String() != expectedURL {
t.Errorf("expected URL to be %s, got %s", expectedURL, req.URL.String())
}
rw.Write([]byte(`{"context": "test", "data": {"items": [{"root-symbol": "AAPL", "instrument-type": "future-option"}]}}`))
_,_ = rw.Write([]byte(`{"context": "test", "data": {"items": [{"root-symbol": "AAPL", "instrument-type": "future-option"}]}}`))
}))
defer server.Close()