You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: barchart_test.go
    path of file: ./repos/termdash/widgets/barchart
    
    the code of the file until where you have to start completion: // Copyright 2018 Google Inc.
//
// 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
    
func TestValueCapacity(t *testing.T) {
	tests := []struct {
		desc                         string
		barWidth, gapWidth, cvsWidth float64
		want                         int
	}{
		{
			desc: "zero canvas width",
		},
		{
			desc:     "no gaps, fits exactly",
			barWidth: 1,
			cvsWidth: 10,
			want:     10,
		},
		{
			desc:     "gaps, fits exactly",
			barWidth: 1,
			gapWidth: 1,
			cvsWidth: 9,
			want:     5,
		},
		{
			desc:     "gaps, one cell left at the end",
			barWidth: 1,
			gapWidth: 1,
			cvsWidth: 10,
			want:     5,
		},
		{
			desc:     "wider bars, no gaps",
			barWidth: 3,
			cvsWidth: 90,
			want:     30,
		},
		{
			desc:     "wider bars and gaps",
			barWidth: 3,
			gapWidth: 2,
			cvsWidth: 12,
			want:     2,
		},
		{
			desc:     "wider bars and gaps",
			barWidth: 3,
			gapWidth: 2,
			cvsWidth: 13,
			want:     3,
		},
	}

	for _, tc := range tests {
		t.Run(tc.desc, func(t *testing.T) {
			if got := valueCapacity(tc.barWidth, tc.gapWidth, tc.cvsWidth); got != tc.want {
				t.Errorf("valueCapacity(%v, %v, %v) => %d, want %d", tc.barWidth, tc.gapWidth, tc.cvsWidth, got, tc.want)
			}
		})
	}
}