import 'package:flutter_test/flutter_test.dart';
import 'package:lanebow/utils/enum_mappings.dart';

void main() {
  group('enum_mappings label helpers', () {
    test('getMemberTypeLabel - null과 unknown 처리', () {
      expect(getMemberTypeLabel(null), '일반 회원');
      expect(getMemberTypeLabel('regular'), '정회원');
      expect(getMemberTypeLabel('unknown_key'), 'unknown_key');
    });

    test('getRoleLabel - null과 unknown 처리', () {
      expect(getRoleLabel(null), '일반 사용자');
      expect(getRoleLabel('admin'), '관리자');
      expect(getRoleLabel('zzz'), 'zzz');
    });

    test('getGenderLabel - null과 unknown 처리', () {
      expect(getGenderLabel(null), '정보 없음');
      expect(getGenderLabel('male'), '남성');
      expect(getGenderLabel('x'), 'x');
    });

    test('getStatusLabel - null과 unknown 처리', () {
      expect(getStatusLabel(null), '정보 없음');
      expect(getStatusLabel('active'), '활성');
      expect(getStatusLabel('x'), 'x');
    });

    test('getEventStatusLabel - null과 unknown 처리', () {
      expect(getEventStatusLabel(null), '정보 없음');
      expect(getEventStatusLabel('completed'), '완료');
      expect(getEventStatusLabel('x'), 'x');
    });

    test('getEventTypeLabel - null과 unknown 처리', () {
      expect(getEventTypeLabel(null), '기타');
      expect(getEventTypeLabel('regular'), '정기전');
      expect(getEventTypeLabel('x'), 'x');
    });
  });
}
