Skip to content

Commit 93c5db7

Browse files
committed
Update expected test results
Signed-off-by: Jono Yang <jyang@nexb.com
1 parent f1b373d commit 93c5db7

23 files changed

Lines changed: 47 additions & 22 deletions

src/typecode/pygments_lexers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import fnmatch
1616
from os.path import basename
1717

18-
from pygments.lexers._mapping import LEXERS
18+
from typecode.prog_lexers import LEXERS
1919
from pygments.modeline import get_filetype_from_buffer
2020
from pygments.plugin import find_plugin_lexers
2121
from pygments.util import ClassNotFound, itervalues, guess_decode, text_type

tests/typecode/data/filetest/archive/a.tar.gz.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: 'gzip compressed data, last modified: Tue Jul 29 18:56:56 2008, from Unix, original
2+
size modulo 2^32 10240'
23
mimetype_file: application/gzip
34
mimetype_python: application/x-tar
45
is_file: yes

tests/typecode/data/filetest/archive/e.tar.gz.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: 'gzip compressed data, last modified: Tue Sep 9 01:32:36 2008, from Unix, original
2+
size modulo 2^32 10240'
23
mimetype_file: application/gzip
34
mimetype_python: application/x-tar
45
is_file: yes

tests/typecode/data/filetest/archive/file_4.26-1.diff.gz.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: 'gzip compressed data, last modified: Mon Sep 8 12:04:26 2008, max compression,
2+
from Unix, original size modulo 2^32 150165'
23
mimetype_file: application/gzip
34
is_file: yes
45
is_regular: yes

tests/typecode/data/filetest/code/java/CommonViewerSiteFactory.jad.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
filetype_file: Java source, ASCII text
22
mimetype_file: text/x-java
33
mimetype_python: text/vnd.sun.j2me.app-descriptor
4+
filetype_pygment: Python
5+
programming_language: Python
46
is_file: yes
57
is_regular: yes
68
size: 1447

tests/typecode/data/filetest/compiled/linux/i686-shash.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: ELF 32-bit LSB executable, Intel 80386
1+
filetype_file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked,
2+
interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.4, with debug_info, not stripped
23
mimetype_file: application/x-executable
34
elf_type: executable
45
is_file: yes

tests/typecode/data/filetest/compiled/linux/x86_64-shash.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
filetype_file: ELF 64-bit LSB executable, x86-64
1+
filetype_file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter
2+
/lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.9, not stripped
23
mimetype_file: application/x-executable
34
elf_type: executable
45
is_file: yes

tests/typecode/data/filetest/data/mysql-arch.ARZ.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
filetype_file: gzip compressed data
1+
filetype_file: gzip compressed data, from Unix, original size modulo 2^32 305
22
mimetype_file: application/gzip
33
is_file: yes
44
is_regular: yes

tests/typecode/data/filetest/data/mysql-arch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
filetype_file: MySQL table definition file
1+
filetype_file: MySQL table definition file Version 224, type DIAM_ISAM, MySQL version -1515870811
22
mimetype_file: application/octet-stream
33
is_file: yes
44
is_regular: yes

tests/typecode/data/filetest/debug/QTMovieWin.pdb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
filetype_file: MSVC program database ver 7.00
1+
filetype_file: MSVC program database ver 7.00, 1024*843 bytes
22
mimetype_file: application/x-ms-pdb
33
mimetype_python: application/vnd.palm
44
is_file: yes

0 commit comments

Comments
 (0)