MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / test_silent

Method test_silent

Test/astc_test_functional.py:1381–1400  ·  view source on GitHub ↗

Test silent

(self)

Source from the content-addressed store, hash-verified

1379 self.assertGreater(time_test, time_ref)
1380
1381 def test_silent(self) -> None:
1382 '''
1383 Test silent
1384 '''
1385 input_path = Path('./Test/Images/Small/LDR-RGBA/ldr-rgba-00.png')
1386 image_dec = self.get_tmp_image_path('LDR', 'decomp')
1387
1388 # Compute the basic image without any channel weights
1389 cmd = [
1390 self.binary, '-tl',
1391 input_path, image_dec, '4x4', '-medium']
1392 stdout = self.exec(cmd)
1393
1394 cmd += ['-silent']
1395 stdout_silent = self.exec(cmd)
1396
1397 # Check that stdout is shorter in silent mode. Note that this doesn't
1398 # check that it is as silent as it should be, just that silent is wired
1399 # somewhere ...
1400 self.assertLess(len(stdout_silent), len(stdout))
1401
1402 def test_image_quality_stability(self) -> None:
1403 '''

Callers

nothing calls this directly

Calls 2

execMethod · 0.95
get_tmp_image_pathMethod · 0.80

Tested by

no test coverage detected