Files
Magical-Jumping-Bean/Library/metadata/d6/d6e23541e3b2fea489be46f704b64707
T

107 lines
7.7 KiB
Plaintext
Raw Normal View History

2019-09-29 19:40:54 -04:00
íÄ2019.2.3f1þÿÿÿÿÿ’3$øÌuñ옲e+ Í=^7€ÿÿÿÿ€¦€²€Ѐ¦€¦€¦€#¦€+H€3ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€ Q€j€
H€<ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€Õ€Iÿÿÿÿ€1€1€ÿÿÿÿÀÞ€€H€j€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€™€PAssetMetaDataguiddata[0]data[1]data[2]data[3]pathNameoriginalNamelabelsassetStoreRef ÿÿfš†!ë5˜9Ý4QÁóBí7€ÿÿÿÿ€¦€²€
E€ Þ€#€.€,€5a€ Þ€#€.€,€†€r€ Þ€# €.€,
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€ñ€JÿÿÿÿÀ1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€\›€ÿÿÿÿ€H€rÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€wÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€#!€.€,"€€…ÿÿÿÿ#@1€1€ÿÿÿÿ$Þ€€%.€j€&Õ€“ÿÿÿÿ'€1€1€ÿÿÿÿ(ÀÞ€€)€j€ÿÿÿÿ*€H€›€ÿÿÿÿ+€1€1€ÿÿÿÿ,@Þ€€-Q€j€.y€
€ /Þ€#0€.€,1€ €§2@¾€¶ 3@Þ€#4€.€,5€H€»ÿÿÿÿ6€1€1€ÿÿÿÿ7@Þ€€8Q€j€9H€Æÿÿÿÿ:€1€1€ÿÿÿÿ;@Þ€€<Q€j€=H€Øÿÿÿÿ>€1€1€ÿÿÿÿ?@Þ€€@Q€j€AMonoImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariantsÿÿ£Gñ×Ü�Z56 :!@iÁJ*�€7€ÿÿÿÿ€¦€²€E€ Þ€€.€€(a€ Þ€€.€€†€r€ Þ€ €.€
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€H€ê€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€ñ€=ÿÿÿÿ€1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€H€›€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€€.€€y€Q Þ€€.€ €Þ€X!H€iÿÿÿÿ"€1€1€ÿÿÿÿ#@Þ€€$Q€j€%H€uÿÿÿÿ&€1€1€ÿÿÿÿ'@Þ€€(Q€j€)PPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespaceˆˆ\ày¯èÌ
m.S>+ïJ˜ëd@ktp^Packages/com.unity.test-framework/UnityEditor.TestRunner/TestRunner/TestFileCleanupVerifier.csày¯TestFileCleanupVerifier/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEngine;
namespace UnityEditor.TestTools.TestRunner
{
[Serializable]
internal class TestFileCleanupVerifier
{
const string k_Indent = " ";
[SerializeField]
List<string> m_ExistingFiles;
[SerializeField]
bool m_ExistingFilesScanned;
public Action<object> logAction = Debug.LogWarning;
private Func<string[]> getAllAssetPathsAction;
public Func<string[]> GetAllAssetPathsAction
{
get
{
if (getAllAssetPathsAction != null)
{
return getAllAssetPathsAction;
}
return AssetDatabase.GetAllAssetPaths;
}
set
{
getAllAssetPathsAction = value;
}
}
public void RegisterExistingFiles()
{
if (m_ExistingFilesScanned)
{
return;
}
m_ExistingFiles = GetAllFilesInAssetsDirectory().ToList();
m_ExistingFilesScanned = true;
}
public void VerifyNoNewFilesAdded()
{
var currentFiles = GetAllFilesInAssetsDirectory().ToList();
//Expect that if its the same amount of files, there havent been any changes
//This is to optimize if there are many files
if (currentFiles.Count != m_ExistingFiles.Count)
{
LogWarningForFilesIfAny(currentFiles.Except(m_ExistingFiles));
}
}
void LogWarningForFilesIfAny(IEnumerable<string> filePaths)
{
if (!filePaths.Any())
{
return;
}
var stringWriter = new StringWriter();
stringWriter.WriteLine("Files generated by test without cleanup.");
stringWriter.WriteLine(k_Indent + "Found {0} new files.", filePaths.Count());
foreach (var filePath in filePaths)
{
stringWriter.WriteLine(k_Indent + filePath);
}
LogAction(stringWriter.ToString());
}
private void LogAction(object obj)
{
if (this.logAction != null)
{
this.logAction(obj);
}
else
{
Debug.LogWarning(obj);
}
}
private IEnumerable<string> GetAllFilesInAssetsDirectory()
{
return GetAllAssetPathsAction();