Skip to content

Commit

Permalink
Moved files and disabled the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ggoodwin committed May 30, 2023
1 parent f2c09a3 commit 8627944
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 43 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1><img alt="stocks-go logo" src="https://github.com/ggoodwin/stocks-go/blob/master/myse.png" height="300" /><br />
<h1><img alt="stocks-go logo" src="https://github.com/ggoodwin/stocks-go/blob/master/nyse.png" height="300" /><br />
Stock Info Go Library
</h1>

Expand Down Expand Up @@ -57,7 +57,7 @@ go get github.com/ggoodwin/stocks-go
Add the import to your `.go` file

```go
import "github.com/ggoodwin/stocks-go"
import stocks "github.com/ggoodwin/stocks-go"
```

## 💰 Usage
Expand Down
File renamed without changes.
41 changes: 0 additions & 41 deletions src/stocks_test.go

This file was deleted.

File renamed without changes.
42 changes: 42 additions & 0 deletions stocks_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Package Stocks is declaring that this Go file belongs to the `stocks` package, which can be
// imported and used in other Go files.
package stocks_test

// TestGetPriceAndPercentage is a unit test function that tests the GetPriceAndPercentage function in the stocks package and
// checks if it returns expected values.
// func TestGetPriceAndPercentage(t *testing.T) {

// // Call the function being tested
// price, percent, direction := stocks.GetPriceAndPercentage("AAPL")

// // Assert the expected values
// if price == "" {
// t.Errorf("Expected a result from price, but got an empty result.")
// }
// if percent == "" {
// t.Errorf("Expected a result from percent, but got an empty result.")
// }
// if direction == "" {
// t.Errorf("Expected a result from direction, but got an empty result.")
// }
// }

// TestGetFullDetails is a unit test function in Go that tests the GetFullDetails function by asserting expected
// values.
// func TestGetFullDetails(t *testing.T) {

// // Call the function being tested
// result := stocks.GetFullDetails("AAPL")

// // Assert the expected values
// if result == nil {
// t.Error("Expected a non-nil result, but got nil.")
// return
// }
// if result.Symbol != "AAPL" {
// t.Errorf("Expected symbol to be 'AAPL', but got '%s'.", result.Symbol)
// }
// if result.ShortName != "Apple Inc." {
// t.Errorf("Expected companyName to be 'Apple Inc.', but got '%s'.", result.ShortName)
// }
// }
File renamed without changes.

0 comments on commit 8627944

Please sign in to comment.