Style changes and cleanup
This patch makes stylistic changes to error strings, unexports method names by lower casing them, removes unused dataSetMetric, and adds copyright/licence information. Signed-Off-By: Corey Stewart <stewa169@purdue.edu>
This commit is contained in:
parent
c95bfa705e
commit
a8c94d48e6
7 changed files with 76 additions and 50 deletions
|
|
@ -1,3 +1,16 @@
|
|||
// Copyright 2016 The Prometheus Authors
|
||||
// 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 collector
|
||||
|
||||
import (
|
||||
|
|
@ -6,7 +19,6 @@ import (
|
|||
)
|
||||
|
||||
func TestZpoolParsing(t *testing.T) {
|
||||
|
||||
zpoolOutput, err := os.Open("fixtures/zfs/zpool_stats_stdout.txt")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
|
@ -55,5 +67,4 @@ func TestZpoolParsing(t *testing.T) {
|
|||
if zrootCapacity != float64(0.5) {
|
||||
t.Fatal("Unexpected value for pool 'zroot's capacity value")
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue