packages/sql-semantics-mysql/tests/Unit/Statement/Utility/Show/Session/ProfileSectionTest.php
1<?php
2
3declare(strict_types=1);
4
5namespace Tests\Unit\Statement\Utility\Show\Session;
6
7use PHPUnit\Framework\Attributes\CoversClass;
8use PHPUnit\Framework\Attributes\Small;
9use PHPUnit\Framework\TestCase;
10use SqlSemantics\Platform\MySql\Statement\Utility\Show\Session\ProfileSection;
11
12#[CoversClass(ProfileSection::class)]
13#[Small]
14final class ProfileSectionTest extends TestCase
15{
16 public function testPositionsCoverTheLayout(): void
17 {
18 self::assertSame(range(2, 15), ProfileSection::All->positions());
19 self::assertSame([], ProfileSection::Memory->positions());
20 self::assertSame([12], ProfileSection::Swaps->positions());
21 }
22}
23