@@ -23,7 +23,7 @@ func TestUnmarshalTtSmiSnapshot(t *testing.T) {
2323 }{
2424 {
2525 name : "valid single device" ,
26- filename : "valid_single_device.json" ,
26+ filename : "tenstorrent/ valid_single_device.json" ,
2727 want : & ttSmiSnapshot {
2828 DeviceInfo : []ttDeviceInfo {
2929 {
@@ -38,7 +38,7 @@ func TestUnmarshalTtSmiSnapshot(t *testing.T) {
3838 },
3939 {
4040 name : "valid multiple devices" ,
41- filename : "valid_multiple_devices.json" ,
41+ filename : "tenstorrent/ valid_multiple_devices.json" ,
4242 want : & ttSmiSnapshot {
4343 DeviceInfo : []ttDeviceInfo {
4444 {
@@ -95,27 +95,27 @@ func TestUnmarshalTtSmiSnapshot(t *testing.T) {
9595 },
9696 {
9797 name : "empty device info" ,
98- filename : "empty_device_info.json" ,
98+ filename : "tenstorrent/ empty_device_info.json" ,
9999 want : & ttSmiSnapshot {
100100 DeviceInfo : []ttDeviceInfo {},
101101 },
102102 wantErr : false ,
103103 },
104104 {
105105 name : "invalid JSON" ,
106- filename : "invalid_json.json" ,
106+ filename : "tenstorrent/ invalid_json.json" ,
107107 want : nil ,
108108 wantErr : true ,
109109 },
110110 {
111111 name : "missing device_info field" ,
112- filename : "missing_device_info.json" ,
112+ filename : "tenstorrent/ missing_device_info.json" ,
113113 want : & ttSmiSnapshot {DeviceInfo : nil },
114114 wantErr : false ,
115115 },
116116 {
117117 name : "empty JSON" ,
118- filename : "empty_json.json" ,
118+ filename : "tenstorrent/ empty_json.json" ,
119119 want : & ttSmiSnapshot {DeviceInfo : nil },
120120 wantErr : false ,
121121 },
@@ -160,7 +160,7 @@ func TestUnmarshalTtSmiSnapshot(t *testing.T) {
160160}
161161
162162func TestGetGpusFromTtSmiSnapshot (t * testing.T ) {
163- data , err := loadTestData ("single_n150_gpu.json" )
163+ data , err := loadTestData ("tenstorrent/ single_n150_gpu.json" )
164164 if err != nil {
165165 t .Fatalf ("Failed to load test data: %v" , err )
166166 }
@@ -187,7 +187,7 @@ func TestGetGpusFromTtSmiSnapshot(t *testing.T) {
187187}
188188
189189func TestGetGpusFromTtSmiSnapshotMultipleDevices (t * testing.T ) {
190- data , err := loadTestData ("valid_multiple_devices.json" )
190+ data , err := loadTestData ("tenstorrent/ valid_multiple_devices.json" )
191191 if err != nil {
192192 t .Fatalf ("Failed to load test data: %v" , err )
193193 }
0 commit comments