Skip to content

Commit

Permalink
Removed some old unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
allmightyspiff committed Sep 24, 2024
1 parent 570631b commit 9cfe31a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 53 deletions.
1 change: 1 addition & 0 deletions generator/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ var _ = Describe("Generate Tests", func() {
Expect(os.RemoveAll(outDir)).To(Succeed())
})
})

18 changes: 1 addition & 17 deletions tests/specialcase_test.go → generator/specialcase_test.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
/**
* Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package tests
package generator_test

import (
"github.com/softlayer/softlayer-go/datatypes"
Expand Down
3 changes: 1 addition & 2 deletions session/rest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/jarcoal/httpmock"
"github.com/softlayer/softlayer-go/datatypes"
"github.com/softlayer/softlayer-go/sl"
"github.com/softlayer/softlayer-go/tests"
)

var s *Session
Expand Down Expand Up @@ -208,7 +207,7 @@ var testcases = []testcase{
sl.String("https://example.com"),
},
options: sl.Options{Id: sl.Int(12345)},
responder: tests.NewEchoResponder(200),
responder: httpmock.NewStringResponder(200, `{"parameters":["https://example.com"]}`),
expected: `{"parameters":["https://example.com"]}`,
expectError: nil,
},
Expand Down
34 changes: 0 additions & 34 deletions tests/util.go

This file was deleted.

0 comments on commit 9cfe31a

Please sign in to comment.